Closed Xiao-MoMi closed 5 months ago
I can't reproduce this issue. tag is used as a fallback for <=1.20.4 Mojang mapped servers. The target field is still named c
on spigot and modern Paper will remap the reflection.
Tested with spigot 1.20.6 and it's working as expected. Could it be problem that the field is "components" instead of "tag" in 1.20.6 mojang mapped server.
1.20.6 spigot
No, that isn't a problem. My testing was on Paper as well. There must be something strange with your environment.
After creating a new plugin and shading the cloud into the jar, I found it's working well on 1.20.6 paper. The only difference is that I was using a JarInJarClassLoader as you can see in the screenshot below Is there anyway to fix that? As it works fine both on 1.20.4 and 1.20.4 mojang mapping servers but not work on 1.20.6 paper
You should add the jar to the classpath using supported api like the PluginLoader or even spigots library downloader. Otherwise you need to apply reflection and bytecode remapping yourself. I can add the new name to the search list later, but you should really adjust how you load the inner jar on Paper.
Thanks! Have a good day
Tested on Paper version git-Paper-78 (MC: 1.20.6)
After decompiling the server and comparing the difference, I found that the field "tag" no longer exists, thus causing the error [1.20.4] [1.20.6]