diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneTransToPointReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneTransToPointReq.java index 28f4cffd0..895e43e6b 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneTransToPointReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneTransToPointReq.java @@ -28,7 +28,7 @@ public class HandlerSceneTransToPointReq extends PacketHandler { float z = scenePointEntry.getPointData().getTranPos().getZ(); 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(); if(!event.isCanceled()) { diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerTryEnterHomeReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTryEnterHomeReq.java index e1927f30f..fe6e1f182 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerTryEnterHomeReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerTryEnterHomeReq.java @@ -40,7 +40,7 @@ public class HandlerTryEnterHomeReq extends PacketHandler { Position pos = scene.getScriptManager().getConfig().born_pos; PlayerTeleportEvent event = new PlayerTeleportEvent(session.getPlayer(), PlayerTeleportEvent.TeleportType.WAYPOINT, - session.getPlayer().getPos(), pos); + session.getPlayer().getPosition(), pos); event.call(); if(!event.isCanceled()) {