mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 14:04:08 +00:00
Update src/main/java/emu/grasscutter/server/packet/recv/HandlerSceneTransToPointReq.java
Co-authored-by: Luke H-W <Birdulon@users.noreply.github.com>
This commit is contained in:
parent
164baa7251
commit
d24c10eec5
@ -26,8 +26,8 @@ public class HandlerSceneTransToPointReq extends PacketHandler {
|
|||||||
float y = scenePointEntry.getPointData().getTranPos().getY();
|
float y = scenePointEntry.getPointData().getTranPos().getY();
|
||||||
float z = scenePointEntry.getPointData().getTranPos().getZ();
|
float z = scenePointEntry.getPointData().getTranPos().getZ();
|
||||||
|
|
||||||
boolean result = session.getPlayer().getWorld().transferPlayerToScene(session.getPlayer(), req.getSceneId(), TeleportType.WAYPOINT, new Position(x, y, z));
|
if (session.getPlayer().getWorld().transferPlayerToScene(session.getPlayer(), req.getSceneId(), TeleportType.WAYPOINT, new Position(x, y, z))) {
|
||||||
if(result) session.send(new PacketSceneTransToPointRsp(session.getPlayer(), req.getPointId(), req.getSceneId()));
|
session.send(new PacketSceneTransToPointRsp(session.getPlayer(), req.getPointId(), req.getSceneId()));
|
||||||
} else {
|
} else {
|
||||||
session.send(new PacketSceneTransToPointRsp());
|
session.send(new PacketSceneTransToPointRsp());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user