From 121c7350732e5a50793ae0420a8f490b90e02fe0 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Wed, 9 Feb 2022 19:58:04 +0100 Subject: [PATCH] Fix registry on respawn --- .../protocol1_18to1_18_2/Protocol1_18To1_18_2.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18to1_18_2/Protocol1_18To1_18_2.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18to1_18_2/Protocol1_18To1_18_2.java index 039685b7..ddae054b 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18to1_18_2/Protocol1_18To1_18_2.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18to1_18_2/Protocol1_18To1_18_2.java @@ -59,15 +59,20 @@ public final class Protocol1_18To1_18_2 extends BackwardsProtocol removeTagPrefix(wrapper.passthrough(Type.NBT))); + } + }); } private void removeTagPrefix(CompoundTag tag) { final Tag infiniburnTag = tag.get("infiniburn"); if (infiniburnTag instanceof StringTag) { final StringTag infiniburn = (StringTag) infiniburnTag; - if (infiniburn.getValue().startsWith("#")) { - infiniburn.setValue(infiniburn.getValue().substring(1)); - } + infiniburn.setValue(infiniburn.getValue().substring(1)); } } }