Преглед изворни кода

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 додато и 1 уклоњено
  1. 1 1
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/quest/Quest.java

+ 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);
 	}
 }