3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-25 07:40:08 +01:00

Merge pull request #1 from StamBoom/master

Fix move packets, thanks StatBoom!
Dieser Commit ist enthalten in:
Myles 2016-02-29 19:31:47 +00:00
Commit 546fdf95d4

Datei anzeigen

@ -90,11 +90,11 @@ public class OutgoingTransformer {
int id = PacketUtil.readVarInt(input);
PacketUtil.writeVarInt(id, output);
int x = input.readByte();
output.writeShort(x);
output.writeShort(x * 128);
int y = input.readByte();
output.writeShort(y);
output.writeShort(y * 128);
int z = input.readByte();
output.writeShort(z);
output.writeShort(z * 128);
byte yaw = input.readByte();
output.writeByte(yaw);
@ -110,11 +110,11 @@ public class OutgoingTransformer {
int id = PacketUtil.readVarInt(input);
PacketUtil.writeVarInt(id, output);
short x = (short) (input.readByte());
output.writeShort(x);
output.writeShort(x * 128);
short y = (short) (input.readByte());
output.writeShort(y);
output.writeShort(y * 128);
short z = (short) (input.readByte());
output.writeShort(z);
output.writeShort(z * 128);
boolean onGround = input.readBoolean();
output.writeBoolean(onGround);