mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 11:57:35 +00:00
Fix remaining traces of Player#getPos
This commit is contained in:
parent
41ec2316e4
commit
c35705010a
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user