2
0
Эх сурвалжийг харах

BETA: Fixing teleToLocation overloading methods shouldn't change instance id to 0 by default.
* Reported by: lion, nBd

Rumen Nikiforov 11 жил өмнө
parent
commit
60b78eda3d

+ 4 - 4
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/L2Character.java

@@ -732,22 +732,22 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
 	
 	public void teleToLocation(int x, int y, int z, int heading, boolean randomOffset)
 	{
-		teleToLocation(x, y, z, heading, 0, (randomOffset) ? Config.MAX_OFFSET_ON_TELEPORT : 0);
+		teleToLocation(x, y, z, heading, -1, (randomOffset) ? Config.MAX_OFFSET_ON_TELEPORT : 0);
 	}
 	
 	public void teleToLocation(int x, int y, int z, int heading)
 	{
-		teleToLocation(x, y, z, heading, 0, 0);
+		teleToLocation(x, y, z, heading, -1, 0);
 	}
 	
 	public void teleToLocation(int x, int y, int z, boolean randomOffset)
 	{
-		teleToLocation(x, y, z, 0, 0, (randomOffset) ? Config.MAX_OFFSET_ON_TELEPORT : 0);
+		teleToLocation(x, y, z, 0, -1, (randomOffset) ? Config.MAX_OFFSET_ON_TELEPORT : 0);
 	}
 	
 	public void teleToLocation(int x, int y, int z)
 	{
-		teleToLocation(x, y, z, 0, 0, 0);
+		teleToLocation(x, y, z, 0, -1, 0);
 	}
 	
 	public void teleToLocation(IPositionable loc, int randomOffset)