forked from SteamWar/SteamWar
Hotfix: Replays (Again Again Again!)
This commit is contained in:
@@ -74,12 +74,13 @@ public class BountifulWrapper9 implements BountifulWrapper.IBountifulWrapper {
|
|||||||
posX.set(packet, x);
|
posX.set(packet, x);
|
||||||
posY.set(packet, y);
|
posY.set(packet, y);
|
||||||
posZ.set(packet, z);
|
posZ.set(packet, z);
|
||||||
byte pitchByte = (byte) (pitch*256/360);
|
if (isByteClass) {
|
||||||
int pitchInt = (int) (pitch*256/360);
|
lookPitch.set(packet, (byte) (pitch*256/360));
|
||||||
lookPitch.set(packet, isByteClass ? pitchByte : pitchInt);
|
lookYaw.set(packet, (byte) (yaw*256/360));
|
||||||
byte yawByte = (byte) (yaw*256/360);
|
} else {
|
||||||
int yawInt = (int) (yaw*256/360);
|
lookPitch.set(packet, (int) (pitch*256/360));
|
||||||
lookYaw.set(packet, isByteClass ? yawByte : yawInt);
|
lookYaw.set(packet, (int) (yaw*256/360));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user