Browse Source

Never trust client coords on char store - closing various exploits passing through doors, etc using relog.

_DS_ 15 năm trước cách đây
mục cha
commit
8dddf988d2

+ 2 - 2
L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java

@@ -7490,8 +7490,8 @@ public final class L2PcInstance extends L2Playable
 	public synchronized void store(boolean storeActiveEffects)
 	public synchronized void store(boolean storeActiveEffects)
 	{
 	{
 		//update client coords, if these look like true
 		//update client coords, if these look like true
-        if (isInsideRadius(getClientX(), getClientY(), 1000, true))
-            setXYZ(getClientX(), getClientY(), getClientZ());
+        // if (isInsideRadius(getClientX(), getClientY(), 1000, true))
+        //    setXYZ(getClientX(), getClientY(), getClientZ());
 
 
 		storeCharBase();
 		storeCharBase();
 		storeCharSub();
 		storeCharSub();