From b7ca30efe85a50440c1b12aedcd9b6d3f80ec619 Mon Sep 17 00:00:00 2001 From: Matsv Date: Tue, 20 Mar 2018 14:31:14 +0100 Subject: [PATCH] Fix crash on scoreboard deletion --- .../protocolsnapshotto1_12_2/ProtocolSnapshotTo1_12_2.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/ProtocolSnapshotTo1_12_2.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/ProtocolSnapshotTo1_12_2.java index b40737ac1..e93d0fc55 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/ProtocolSnapshotTo1_12_2.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocolsnapshotto1_12_2/ProtocolSnapshotTo1_12_2.java @@ -269,7 +269,8 @@ public class ProtocolSnapshotTo1_12_2 extends Protocol { handler(new PacketHandler() { @Override public void handle(PacketWrapper wrapper) throws Exception { - if (wrapper.get(Type.BYTE, 0) == 0 || wrapper.get(Type.BYTE, 0) == 1) { + // On create or update + if (wrapper.get(Type.BYTE, 0) == 0 || wrapper.get(Type.BYTE, 0) == 2) { wrapper.passthrough(Type.STRING); String type = wrapper.read(Type.STRING); // integer or hearts