joshuaprince / CoordinateOffset

⛏️ A Minecraft Spigot/Paper plugin that configurably obfuscates players' coordinates.
GNU Affero General Public License v3.0
18 stars 7 forks source link

NullPointerException "enchantment" is null #20

Closed BarryTheShen closed 1 month ago

BarryTheShen commented 1 month ago

Describe the bug A clear and concise description of what the bug is. When logging on the server for the first time it is fine. You will be disconnected after a few seconds showing "Disconnected". After that, the next time you tried to join, you get this error message: "Internal Exception: io.netty.handler.codec.EncoderException: java.lang.NullPointerException: Cannot invoke "com.jtprince.lib.com.github.retrooper.packetevents.protocol.item.enchantment.type.EnchantmentType.getId(com.jtprince.lib.com.github.retrooper.packetevents.protocol.player.ClientVersion)" because "enchantment" is null"

Environment details Output of /version: Current Purpur Version: 1.21.1-2315-2a50638 (MC: 1.21.1)*

Log errors

No errors except for the same message the player received.
Include any stack traces, exceptions, or error messages printed when the bug occurs.

Steps to reproduce Please give any additional details that might help us to recreate the bug in a test server. Open the client, and log on to the server The bug will appear Additional context Add any other context about the problem here. Additional Warnings: [12:01:53 WARN]: [nightcore] ========== WARNING ========== [12:01:53 WARN]: [nightcore] Enabled Mojang's DataFixer for ItemStacks to update/fix NBT structure from <= 1.20.4 to 1.20.6+ [12:01:53 WARN]: [nightcore] This may significally affect server's performance. [12:01:53 WARN]: [nightcore] Please, re-save all configuration(s) using in-game GUI editor(s) (if there is any). [12:01:53 WARN]: [nightcore] Then disable this 'feature' in the config.yml of nightcore.

joshuaprince commented 1 month ago

Hi, this looks like https://github.com/retrooper/packetevents/issues/963 which is fixed in the latest PacketEvents release. Please try CoordinateOffset v4.0.4 and reopen this issue if you still see it.

BarryTheShen commented 1 month ago

Yep it is working, thank you!