Переглянути джерело

BETA: Fixing minor problem with teleportPlayer seems like teleToLocation now set's instance id from the location since [5723]

Rumen Nikiforov 12 роки тому
батько
коміт
f575d497a9

+ 1 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/quest/Quest.java

@@ -3698,7 +3698,7 @@ public class Quest extends ManagedScript
 	 */
 	public void teleportPlayer(L2PcInstance player, Location loc, int instanceId, boolean allowRandomOffset)
 	{
-		player.setInstanceId(instanceId);
+		loc.setInstanceId(instanceId);
 		player.teleToLocation(loc, allowRandomOffset);
 	}
 }