From 9441a1e49eb4f6f4be0de1059fdb9ebf802371d3 Mon Sep 17 00:00:00 2001 From: Gerrygames Date: Tue, 7 May 2019 13:13:15 +0200 Subject: [PATCH] fix map packet --- .../protocol1_12_2to1_13/packets/BlockItemPackets1_13.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java index 790e5206..f6e768e0 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_12_2to1_13/packets/BlockItemPackets1_13.java @@ -382,7 +382,10 @@ public class BlockItemPackets1_13 extends BlockItemRewriter 9) continue; + if (type > 9) { + wrapper.set(Type.VAR_INT, 1, wrapper.get(Type.VAR_INT, 1) - 1); + continue; + } wrapper.write(Type.BYTE, (byte) ((type << 4) | (direction & 0x0F))); wrapper.write(Type.BYTE, x); wrapper.write(Type.BYTE, z);