From c35705010aa976c1287574c2a53863059c3071dc Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sun, 24 Jul 2022 13:27:43 -0400 Subject: [PATCH] Fix remaining traces of `Player#getPos` --- .../server/packet/recv/HandlerSceneTransToPointReq.java | 2 +- .../grasscutter/server/packet/recv/HandlerTryEnterHomeReq.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()) {