Commit c3570501 authored by KingRainbow44's avatar KingRainbow44
Browse files

Fix remaining traces of `Player#getPos`

parent 41ec2316
......@@ -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()) {
......
......@@ -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()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment