Fix remaining traces of Player#getPos

This commit is contained in:
KingRainbow44 2022-07-24 13:27:43 -04:00
parent 41ec2316e4
commit c35705010a
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public class HandlerSceneTransToPointReq extends PacketHandler {
float z = scenePointEntry.getPointData().getTranPos().getZ(); float z = scenePointEntry.getPointData().getTranPos().getZ();
PlayerTeleportEvent event = new PlayerTeleportEvent(session.getPlayer(), PlayerTeleportEvent.TeleportType.WAYPOINT, PlayerTeleportEvent event = new PlayerTeleportEvent(session.getPlayer(), PlayerTeleportEvent.TeleportType.WAYPOINT,
session.getPlayer().getPos(), new Position(x, y, z)); session.getPlayer().getPosition(), new Position(x, y, z));
event.call(); event.call();
if(!event.isCanceled()) { if(!event.isCanceled()) {

View File

@ -40,7 +40,7 @@ public class HandlerTryEnterHomeReq extends PacketHandler {
Position pos = scene.getScriptManager().getConfig().born_pos; Position pos = scene.getScriptManager().getConfig().born_pos;
PlayerTeleportEvent event = new PlayerTeleportEvent(session.getPlayer(), PlayerTeleportEvent.TeleportType.WAYPOINT, PlayerTeleportEvent event = new PlayerTeleportEvent(session.getPlayer(), PlayerTeleportEvent.TeleportType.WAYPOINT,
session.getPlayer().getPos(), pos); session.getPlayer().getPosition(), pos);
event.call(); event.call();
if(!event.isCanceled()) { if(!event.isCanceled()) {