Fix player teleport to wrong instance.

This commit is contained in:
MobiusDev 2017-08-26 01:05:14 +00:00
parent 849ea9d3a9
commit cbb4fcaa69

View File

@ -2755,8 +2755,7 @@ public abstract class AbstractScript extends ManagedScript
*/ */
public void teleportPlayer(L2PcInstance player, Location loc, int instanceId, boolean allowRandomOffset) public void teleportPlayer(L2PcInstance player, Location loc, int instanceId, boolean allowRandomOffset)
{ {
loc.setInstanceId(instanceId); player.teleToLocation(loc, instanceId, allowRandomOffset ? Config.MAX_OFFSET_ON_TELEPORT : 0);
player.teleToLocation(loc, allowRandomOffset);
} }
/** /**