From e22975cec450b1af055559449a56064d78cdbab3 Mon Sep 17 00:00:00 2001 From: Mat Date: Fri, 11 Dec 2020 03:08:34 +0200 Subject: [PATCH] Add missing length check in 1.13 -> 1.12.2 stats code --- .../protocols/protocol1_13to1_12_2/Protocol1_13To1_12_2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/Protocol1_13To1_12_2.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/Protocol1_13To1_12_2.java index 18e687517..b02f3136f 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/Protocol1_13To1_12_2.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/Protocol1_13To1_12_2.java @@ -210,7 +210,7 @@ public class Protocol1_13To1_12_2 extends Protocol 1.12.2 statistic mapping for " + name); } - } else { + } else if (split.length > 2) { String category = split[1]; //TODO convert string ids (blocks, items, entities) switch (category) {