Skip to content

Commit

Permalink
Use class name instead of declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubenicos committed Jan 15, 2025
1 parent dd25506 commit 8081295
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
group=com.saicone.rtag
version=1.5.9
version=1.5.10-SNAPSHOT
4 changes: 2 additions & 2 deletions src/main/java/com/saicone/rtag/util/ChatComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public class ChatComponent {
MethodHandle method$fromJson = null;
MethodHandle method$toJson = null;
try {
Class<?> clazz = EasyLookup.addNMSClass("network.chat.IChatBaseComponent", "Component");
EasyLookup.addClassId("ChatSerializer", clazz.getDeclaredClasses()[0]);
EasyLookup.addNMSClass("network.chat.IChatBaseComponent", "Component");
EasyLookup.addNMSClassId("ChatSerializer", "network.chat.IChatBaseComponent$ChatSerializer", "network.chat.Component$Serializer");
EasyLookup.addOBCClass("util.CraftChatMessage");

// Old names
Expand Down

0 comments on commit 8081295

Please sign in to comment.