Skip to content

Commit 67e7375

Browse files
fix: initialization error for WrappedChatComponent on 1.20.4-1.21.5 (#3493)
1 parent 9417eee commit 67e7375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,8 @@ public static Class<?> getChatComponentTextClass() {
685685
* @throws IllegalStateException If the class could not be found or deduced.
686686
*/
687687
public static Class<?> getChatSerializerClass() {
688-
return getMinecraftClass("network.chat.ComponentSerialization",
689-
"network.chat.IChatBaseComponent$ChatSerializer", "network.chat.Component$Serializer", "IChatBaseComponent$ChatSerializer");
688+
return getMinecraftClass("network.chat.IChatBaseComponent$ChatSerializer",
689+
"network.chat.Component$Serializer", "network.chat.ComponentSerialization", "IChatBaseComponent$ChatSerializer");
690690
}
691691

692692
/**

0 commit comments

Comments
 (0)