mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 18:15:39 +01:00
Fix move packets
This commit is contained in:
parent
c641f02d7e
commit
e6a9cc4776
@ -90,11 +90,11 @@ public class OutgoingTransformer {
|
|||||||
int id = PacketUtil.readVarInt(input);
|
int id = PacketUtil.readVarInt(input);
|
||||||
PacketUtil.writeVarInt(id, output);
|
PacketUtil.writeVarInt(id, output);
|
||||||
int x = input.readByte();
|
int x = input.readByte();
|
||||||
output.writeShort(x);
|
output.writeShort(x * 128);
|
||||||
int y = input.readByte();
|
int y = input.readByte();
|
||||||
output.writeShort(y);
|
output.writeShort(y * 128);
|
||||||
int z = input.readByte();
|
int z = input.readByte();
|
||||||
output.writeShort(z);
|
output.writeShort(z * 128);
|
||||||
|
|
||||||
byte yaw = input.readByte();
|
byte yaw = input.readByte();
|
||||||
output.writeByte(yaw);
|
output.writeByte(yaw);
|
||||||
@ -110,11 +110,11 @@ public class OutgoingTransformer {
|
|||||||
int id = PacketUtil.readVarInt(input);
|
int id = PacketUtil.readVarInt(input);
|
||||||
PacketUtil.writeVarInt(id, output);
|
PacketUtil.writeVarInt(id, output);
|
||||||
short x = (short) (input.readByte());
|
short x = (short) (input.readByte());
|
||||||
output.writeShort(x);
|
output.writeShort(x * 128);
|
||||||
short y = (short) (input.readByte());
|
short y = (short) (input.readByte());
|
||||||
output.writeShort(y);
|
output.writeShort(y * 128);
|
||||||
short z = (short) (input.readByte());
|
short z = (short) (input.readByte());
|
||||||
output.writeShort(z);
|
output.writeShort(z * 128);
|
||||||
|
|
||||||
boolean onGround = input.readBoolean();
|
boolean onGround = input.readBoolean();
|
||||||
output.writeBoolean(onGround);
|
output.writeBoolean(onGround);
|
||||||
|
Loading…
Reference in New Issue
Block a user