utarwyn / EnderContainers

A modern and customizable Bukkit plugin to divide enderchest into multiple inventories.
https://spigotmc.org/resources/4750/
BSD 3-Clause "New" or "Revised" License
24 stars 14 forks source link

Fix hotbar swap restricted items #230

Closed Tomut0 closed 1 year ago

Tomut0 commented 1 year ago

I noticed that players can move restricted items to endercontainers by number keys. Hope it's fixed from now.

Tomut0 commented 1 year ago

Thank you for the contribution to the plugin, really appreciated! It is indeed a case that I had not handled properly..

I have made some tests on Minecraft 1.19.4 (latest version at this date) but this not works unfortunally.. I have the following error in the console when using hotswap key:

Could not pass event InventoryClickEvent to EnderContainers v2.3.0-dev java.lang.ArrayIndexOutOfBoundsException: null

Due to that error, I'm still be able to take items from the main menu: image

Can you please re-check, @Tomut0 ?

Oh, I see. Actually, I checked only with numbers, but now I understand the problem.