mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
immediately move the player to TP pos if ignoring positions
This commit is contained in:
parent
5ea3e77b56
commit
066016fe9e
@ -135,8 +135,8 @@ namespace MCGalaxy
|
|||||||
if (!Session.SendTeleport(Entities.SelfID, pos, rot, Packet.TeleportMoveMode.AbsoluteInstant)) {
|
if (!Session.SendTeleport(Entities.SelfID, pos, rot, Packet.TeleportMoveMode.AbsoluteInstant)) {
|
||||||
Session.SendTeleport(Entities.SelfID, pos, rot);
|
Session.SendTeleport(Entities.SelfID, pos, rot);
|
||||||
}
|
}
|
||||||
// when frozen, position updates from the client are ignored
|
// Forcibly move the player since their position won't naturally update
|
||||||
if (frozen) Pos = pos;
|
if (frozen || IgnorePosition) Pos = pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendBlockchange(ushort x, ushort y, ushort z, BlockID block) {
|
public void SendBlockchange(ushort x, ushort y, ushort z, BlockID block) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user