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

Breaking a double resin brick slab block only returns a single slab

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Future Update
    • 1.21.4
    • None
    • Confirmed
    • Items, Loot tables
    • Important
    • 1341113
    • Expansion A

      What I expected to happen was...:

      When breaking a double resin slab block with any level of pickaxe 2 slab items should have appeared

      What actually happened was...:

      When breaking the double slab block only one slab item appeared

      Steps to Reproduce:

      1. Place down two resin slabs on top of one another to make a full block
      2. Using any level of pick, break the block and only one appears instead of 2

      Code analysis (official mappings)

      In the VanillaBlockLoot#generate method:

      this.dropSelf(Blocks.RESIN_BRICK_SLAB);

      instead of

      this.add(Blocks.RESIN_BRICK_SLAB, $$1x -> this.createSlabItemTable($$1x));

      Code analysis (Yarn mappings)

      In the VanillaBlockLootTableGenerator#generate method:

      this.addDrop(Blocks.RESIN_BRICK_SLAB);
      

      instead of

      this.addDrop(Blocks.RESIN_BRICK_SLAB, block -> this.slabDrops(block));
      

            Unassigned Unassigned
            wscolgan wscolgan
            Votes:
            10 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: