Skip to content

Commit 99f6356

Browse files
Make chat_types handling in 1.19 protocols optional (#733)
1 parent 9b8e65c commit 99f6356

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19_1to1_19_3/packets/EntityPackets1_19_3.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void register() {
8383
chatTypeStorage.clear();
8484

8585
final CompoundTag registry = wrapper.get(Type.NAMED_COMPOUND_TAG, 0);
86-
final ListTag<CompoundTag> chatTypes = TagUtil.getRegistryEntries(registry, "chat_type");
86+
final ListTag<CompoundTag> chatTypes = TagUtil.getRegistryEntries(registry, "chat_type", new ListTag<>(CompoundTag.class));
8787
for (final CompoundTag chatType : chatTypes) {
8888
final NumberTag idTag = chatType.getNumberTag("id");
8989
chatTypeStorage.addChatType(idTag.asInt(), chatType);

common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_19to1_19_1/Protocol1_19To1_19_1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void register() {
103103
chatTypeStorage.clear();
104104

105105
final CompoundTag registry = wrapper.get(Type.NAMED_COMPOUND_TAG, 0);
106-
final ListTag<CompoundTag> chatTypes = TagUtil.removeRegistryEntries(registry, "chat_type");
106+
final ListTag<CompoundTag> chatTypes = TagUtil.removeRegistryEntries(registry, "chat_type", new ListTag<>(CompoundTag.class));
107107
for (final CompoundTag chatType : chatTypes) {
108108
final NumberTag idTag = chatType.getNumberTag("id");
109109
chatTypeStorage.addChatType(idTag.asInt(), chatType);

0 commit comments

Comments
 (0)