diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/Protocol1_19_1To1_19.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/Protocol1_19_1To1_19.java index 1f9b81d7b..4c52b5e4e 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/Protocol1_19_1To1_19.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_1to1_19/Protocol1_19_1To1_19.java @@ -348,16 +348,20 @@ public final class Protocol1_19_1To1_19 extends AbstractProtocol entry : TextFormatting.FORMATTINGS.entrySet()) { - final Tag tag = styleTag.get(entry.getKey()); - if (!(tag instanceof ByteTag)) { + final Tag formattingTag = styleTag.get(entry.getKey()); + if (!(formattingTag instanceof ByteTag)) { continue; } - final boolean value = ((NumberTag) tag).asBoolean(); + final boolean value = ((NumberTag) formattingTag).asBoolean(); final TextFormatting formatting = entry.getValue(); if (formatting == TextFormatting.OBFUSCATED) { style.setObfuscated(value); @@ -390,7 +394,7 @@ public final class Protocol1_19_1To1_19 extends AbstractProtocol arguments = new ArrayList<>(); if (parameters != null) { for (final Tag element : parameters) { @@ -403,8 +407,9 @@ public final class Protocol1_19_1To1_19 extends AbstractProtocol