1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-28 03:09:08 +00:00

Use position setter instead of directly setting entity position

This commit is contained in:
onebeastchris
2025-12-21 14:49:02 +01:00
parent adf406321a
commit 927b72fd85

View File

@@ -297,7 +297,8 @@ public class Entity implements GeyserEntity {
clientVehicle.getVehicleComponent().moveRelative(relX, relY, relZ);
}
position = Vector3f.from(position.getX() + relX, position.getY() + relY, position.getZ() + relZ);
// Use fluid setter to ensure bedrockPosition is updated
position(Vector3f.from(position.getX() + relX, position.getY() + relY, position.getZ() + relZ));
MoveEntityDeltaPacket moveEntityPacket = new MoveEntityDeltaPacket();
moveEntityPacket.setRuntimeEntityId(geyserId);