Parcourir la source

Packet optimisation: does not broadcast StatusUpdate for CP decrease if HP update will be next.
Avoiding double broadcast.

_DS_ il y a 15 ans
Parent
commit
d65a3d3acb

+ 1 - 1
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/status/PcStatus.java

@@ -145,7 +145,7 @@ public class PcStatus extends PlayableStatus
 				else
 				{
 					value -= getCurrentCp();                // Get diff from value vs Cp; will apply diff to Hp
-					setCurrentCp(0);                        // Set Cp to 0
+					setCurrentCp(0, false);                        // Set Cp to 0
 				}
 			}