Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-253951

Shulker boxes allow input of items, which return false for Item#canFitInsideContainerItems, through the use of hoppers.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.19, 1.19.1 Pre-release 3
    • None
    • Plausible
    • (Unassigned)

      During the process of making a mod for Minecraft: Java Edition, I noticed a potential implementation error, while this currently doesn't effect gameplay it does affect mods and may affect gameplay further down the line.

      Currently it is possible to input items, which return false for Item#canFitInsideContainerItems, into shulker boxes via hoppers.
      This is not a problem when inserting items using the GUI since ShulkerBoxSlot correctly delegates to Item#canFitInsideContainerItems while ShulkerBoxBlockEntity#canPlaceItemThroughFace specifically checks if the items block representation is ShulkerBoxBlock.
      The fix would probably just be making ShulkerBoxBlockEntity#canPlaceItemThroughFace delegate to Item#canFitInsideContainerItems as well.

      All code mentions use official mappings for version 1.19

            Unassigned Unassigned
            PlatinPython PlatinPython
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: