Closed jascotty2 closed 5 years ago
Sounds like this bug should be reported to spigot's issue tracker IMO
This is certainly something that needs to be reported to spigot team. For now, the only practical effect of the bug on my plugin is that it prints an exception to console; it doesn't change the expected behavior of the plugin because in the cases where it runs into the exception it would have done nothing anyway.
I can't stress enough that I appreciate that you took the time to track down the issue, report it and make a fix. However, because 1) the bug doesn't negatively affect plugin behavior (other than the exception reported on console) and 2) I expect the server issue to be fixed promptly if reported to spigot, I don't see any reason to accept this PR.
If you'd like to add anything, I reported the spigot issue here https://hub.spigotmc.org/jira/browse/SPIGOT-5058
Thanks for putting in a report for me! :)
I didn't feel like putting the energy into properly documenting it, so many other things to fix and work on right now, and this little change was to keep these generally benign errors out of my console so they don't distract from actual issues. Put in the PR to share, and I think reporting it was the next best thing to actually fixing the issue (Since it stems from net.minecraft.server.v1_14_R1.EntityPlayer.closeInventory, it didn't look like a simple fix)
Fixes false lectern close event errors: