Errored-Innovations / HeadsPlus

A heads plugin that has grown for over two years into something more ambitious than other plugins.
GNU General Public License v3.0
36 stars 17 forks source link

fix inventory size check when cancelling inventory item move #107

Closed steve4744 closed 2 years ago

steve4744 commented 2 years ago

Attempting to move the item in the first slot of the bottom inventory causes an exception:

Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 54 out of bounds for length 54
    at io.github.thatsmusic99.headsplus.inventories.BaseInventory.onInventoryClick(BaseInventory.java:192) ~[?:?]

This is using HP 7.0.7 on Spigot 1.19.

Thatsmusic99 commented 2 years ago

Cheers for catching this out!