Browse Source

add offset for runegate teleport regions

combat-2
FatBoy-DOTC 1 year ago
parent
commit
5d4192bbcf
  1. 3
      src/engine/objects/Portal.java

3
src/engine/objects/Portal.java

@ -3,6 +3,7 @@ package engine.objects; @@ -3,6 +3,7 @@ package engine.objects;
import engine.Enum;
import engine.Enum.PortalType;
import engine.InterestManagement.WorldGrid;
import engine.gameManager.BuildingManager;
import engine.gameManager.ConfigManager;
import engine.job.JobScheduler;
import engine.jobs.CloseGateJob;
@ -104,7 +105,7 @@ public class Portal { @@ -104,7 +105,7 @@ public class Portal {
if (player.getTimeStamp("lastMoveGate") < this.lastActive)
return;
player.teleport(targetGate.getLoc());
player.teleport(targetGate.getLoc().add(0,6,0));//offset height of runegate
player.setSafeMode();
}

Loading…
Cancel
Save