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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user