From 066016fe9ee3ed18be641fbb9644d4d74e49f376 Mon Sep 17 00:00:00 2001 From: Goodlyay Date: Fri, 16 Feb 2024 01:52:16 -0800 Subject: [PATCH] immediately move the player to TP pos if ignoring positions --- MCGalaxy/Network/Player.Networking.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MCGalaxy/Network/Player.Networking.cs b/MCGalaxy/Network/Player.Networking.cs index 36f9e6ade..84e248400 100644 --- a/MCGalaxy/Network/Player.Networking.cs +++ b/MCGalaxy/Network/Player.Networking.cs @@ -135,8 +135,8 @@ namespace MCGalaxy if (!Session.SendTeleport(Entities.SelfID, pos, rot, Packet.TeleportMoveMode.AbsoluteInstant)) { Session.SendTeleport(Entities.SelfID, pos, rot); } - // when frozen, position updates from the client are ignored - if (frozen) Pos = pos; + // Forcibly move the player since their position won't naturally update + if (frozen || IgnorePosition) Pos = pos; } public void SendBlockchange(ushort x, ushort y, ushort z, BlockID block) {