Fix player teleport to wrong instance.
This commit is contained in:
parent
849ea9d3a9
commit
cbb4fcaa69
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user