mirror of
https://github.com/ViaVersion/ViaLegacy.git
synced 2024-11-15 10:45:19 +01:00
Fixed 1.8 -> 1.7.10 release item direction value
This commit is contained in:
parent
9ed5575a29
commit
d4d448b3e5
@ -1234,6 +1234,12 @@ public class Protocol1_8to1_7_6_10 extends AbstractProtocol<ClientboundPackets1_
|
||||
map(Type.VAR_INT, Type.UNSIGNED_BYTE); // status
|
||||
map(Type.POSITION1_8, Types1_7_6.POSITION_UBYTE); // position
|
||||
map(Type.UNSIGNED_BYTE); // direction
|
||||
handler(wrapper -> {
|
||||
final short status = wrapper.get(Type.UNSIGNED_BYTE, 0);
|
||||
if (status == 5) { // RELEASE_USE_ITEM
|
||||
wrapper.set(Type.UNSIGNED_BYTE, 1, (short) 255);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
this.registerServerbound(ServerboundPackets1_8.PLAYER_BLOCK_PLACEMENT, new PacketHandlers() {
|
||||
|
Loading…
Reference in New Issue
Block a user