Skip to content

MC 1.21.10 | Full Functionality Fixes #1

Open
LuckyLuuk12 wants to merge 2 commits intoWeNeedCoffee:masterfrom
LuckyLuuk12:1.21.10-fixes
Open

MC 1.21.10 | Full Functionality Fixes #1
LuckyLuuk12 wants to merge 2 commits intoWeNeedCoffee:masterfrom
LuckyLuuk12:1.21.10-fixes

Conversation

@LuckyLuuk12
Copy link

Installing and using this plugin on a PaperMC 1.21.10 server threw errors and various features were not working as intended, specifically the error below was thrown when shift-clicking items in an inventory (to a shulkerbox).

Removed:

  • Spigot dependency as maven failed when I tried to load the project with it

Changed:

  • Updated the NBTEditor dependency
  • Added config option to (dis)allow the "onPlayerUse" functionality

Fixes:

  • After opening shulkerbox 1, then right-clicking another while the inventory of shulkerbox 1 was open and then trying to go back to shulkerbox 1's view again, it would not "swap back", fixed that
  • The shift click issue/error
  • onPlayerUse wasn't working at all, fixed it as well
  • if nesting was NOT allowed it would still work with empty boxes, fixed that to be disallowed as well
[16:57:52 ERROR]: Could not pass event InventoryClickEvent to Shulkerception v1.1.3
java.lang.NoClassDefFoundError: Could not initialize class io.github.bananapuncher714.nbteditor.NBTEditor
        at shulkerception-0.0.2-SNAPSHOT-jar-with-dependencies.jar/coffee.weneed.bukkit.shuklerception.events.InventoryListener.onInventoryClick(InventoryListener.java:149) ~[shulkerception-0.0.2-SNAPSHOT-jar-with-dependencies.jar:?]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[paper-api-1.21.10-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:71) ~[paper-api-1.21.10-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[paper-api-1.21.10-R0.1-SNAPSHOT.jar:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleContainerClick(ServerGamePacketListenerImpl.java:3224) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:59) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at net.minecraft.network.protocol.game.ServerboundContainerClickPacket.handle(ServerboundContainerClickPacket.java:14) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at net.minecraft.network.PacketProcessor$ListenerAndPacket.handle(PacketProcessor.java:99) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at net.minecraft.network.PacketProcessor.executeSinglePacket(PacketProcessor.java:33) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1516) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at net.minecraft.server.MinecraftServer.recordTaskExecutionTimeWhileWaiting(MinecraftServer.java:1226) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1357) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:383) ~[paper-1.21.10.jar:1.21.10-89-c7714bb]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 3 [in thread "Server thread"]
        at shulkerception-0.0.2-SNAPSHOT-jar-with-dependencies.jar/io.github.bananapuncher714.nbteditor.NBTEditor.<clinit>(NBTEditor.java:51) ~[shulkerception-0.0.2-SNAPSHOT-jar-with-dependencies.jar:?]
        ... 16 more

…lkerbox while in other shulkerbox inventory view fix, shift-click / dependency issue fixed
…lkerbox while in other shulkerbox inventory view fix, shift-click / dependency issue fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant