You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you manage to get a backpack, pouch, or shulkerbox inside a pouch or backpack, it's impossible to get it out.
Rather than prevent you from taking illegal items out, you should only prevent illegal items entering the pouch / backpack.
Also, it's possible to put a shulkerbox or chest inside a pouch or backpack, using the 'right click on inventory stack' method of putting items into pouches and backpacks, but NOT pouches or backpacks.
The logic in the Storage Group is a little all over the place too, the checks should probably call a method that centralizes the logic to prevent stuff like this happening in the future.
publicvoidon_place_item_in_storage_inventory(InventoryClickEventevent) {
<snip>
// Allow putting in any items that are not a storage item, or storage items that have nothing in them.if (!(is_storage_item(event.getCursor()) && event.getCursor().hasItemMeta())) {
So the fact that custom items have item meta is what's filtering it out, which isn't really what we want to be checking for.
publicvoidon_inventory_click(InventoryClickEventevent) {
<snip>
if (is_storage_item(event.getCurrentItem()) || (is_storage_item(event.getCursor()) && event.getCursor().hasItemMeta())) {
This is incorrectly filtering ALL storage items somehow, maybe it's because of getCurrentItem vs getCursor? not sure what the original intention was supposed to be here.
publicvoidon_inventory_drag(InventoryDragEventevent) {
<snip>
for (finalvaritem_stack : event.getNewItems().values()) {
if (is_storage_item(item_stack)) {
drag is only checking if anything is a storage item, then cancelling.
The text was updated successfully, but these errors were encountered:
This bug still persists, noticed it when I couldn't put a dispenser inside a backpack. You can still place these items inside by number-clicking from hotbar into the backpack, and it is completely impossible to take them out.
If you manage to get a backpack, pouch, or shulkerbox inside a pouch or backpack, it's impossible to get it out.
Rather than prevent you from taking illegal items out, you should only prevent illegal items entering the pouch / backpack.
Also, it's possible to put a shulkerbox or chest inside a pouch or backpack, using the 'right click on inventory stack' method of putting items into pouches and backpacks, but NOT pouches or backpacks.
The logic in the Storage Group is a little all over the place too, the checks should probably call a method that centralizes the logic to prevent stuff like this happening in the future.
So the fact that custom items have item meta is what's filtering it out, which isn't really what we want to be checking for.
This is incorrectly filtering ALL storage items somehow, maybe it's because of getCurrentItem vs getCursor? not sure what the original intention was supposed to be here.
drag is only checking if anything is a storage item, then cancelling.
The text was updated successfully, but these errors were encountered: