Merge pull request 'fix(SpigotCore): rEntity move packet using incorrect position' (#372) from fix-rentity-system into main

Reviewed-on: SteamWar/SteamWar#372
Reviewed-by: Chaoscaot <max@chaoscaot.de>
This commit is contained in:
2026-05-17 19:30:45 +02:00
@@ -343,9 +343,9 @@ public class REntity {
} }
private Object getMoveLookPacket(double diffX, double diffY, double diffZ, boolean rotEq) { private Object getMoveLookPacket(double diffX, double diffY, double diffZ, boolean rotEq) {
short x = (short) (this.x * 4096); short x = (short) (diffX * 4096);
short y = (short) (this.y * 4096); short y = (short) (diffY * 4096);
short z = (short) (this.z * 4096); short z = (short) (diffZ * 4096);
byte yaw = (byte) (this.yaw * 256 / 360); byte yaw = (byte) (this.yaw * 256 / 360);
byte pitch = (byte) (this.pitch * 256 / 360); byte pitch = (byte) (this.pitch * 256 / 360);