Hiya,
The code below shows a 1.20.1 and 1.20.2 version of the same spigot code. The 1.20.1 works with both spigot and paper, the 1.20.2 code only works with spigot.
I get this error on paper 1.20.2, is this something I can expect to be fixed eventually ? or is there something I can do to fix it. The spigot mappings changed so is paper also going to update theirs to be the same at some point?
The code below shows a 1.20.1 and 1.20.2 version of the same spigot code. The 1.20.1 works with both spigot and paper, the 1.20.2 code only works with spigot.
Code:
//1.20.1
ClientboundSystemChatPacket packet = new ClientboundSystemChatPacket(IChatBaseComponent.ChatSerializer.a(line), false);
(((CraftPlayer) player).getHandle()).c.a(packet);
//1.20.2
ClientboundSystemChatPacket packet = new ClientboundSystemChatPacket(IChatBaseComponent.ChatSerializer.fromJson(line), false);
(((CraftPlayer) player).getHandle()).connection.send(packet);
I get this error on paper 1.20.2, is this something I can expect to be fixed eventually ? or is there something I can do to fix it. The spigot mappings changed so is paper also going to update theirs to be the same at some point?
Code:
java.lang.NoSuchMethodError: 'net.minecraft.network.chat.IChatMutableComponent net.minecraft.network.chat.IChatBaseComponent$ChatSerializer.fromJson(java.lang.String)'