Skip to content

Stop booster packs from dropping when chest blocks are broken - #9

Merged
Howlite-UI merged 1 commit into
Howlite-UI:mainfrom
PokeHeavenMC:fix/booster-chest-block-drop
Oct 14, 2026
Merged

Howlite-UI merged 1 commit into
Howlite-UI:mainfrom
PokeHeavenMC:fix/booster-chest-block-drop

Conversation

@typlosion14

Copy link
Copy Markdown
Contributor

isChestLootTable() matched any loot table whose path contained "chest", including block drop tables such as blocks/chest, blocks/trapped_chest, blocks/ender_chest and modded chest blocks. Those are rolled on every break, so placing and breaking a chest (even a freshly crafted one) gave a boosterChestSpawnChance% chance of a free booster, which players could farm and reported as a dupe.

Only structure chest tables (chests/... and .../chests/...) now get the booster pool, and blocks/... tables are rejected explicitly.

isChestLootTable() matched any loot table whose path contained "chest",
including block drop tables such as blocks/chest, blocks/trapped_chest,
blocks/ender_chest and modded chest blocks. Those are rolled on every
break, so placing and breaking a chest (even a freshly crafted one) gave
a boosterChestSpawnChance% chance of a free booster, which players could
farm and reported as a dupe.

Only structure chest tables (chests/... and .../chests/...) now get the
booster pool, and blocks/... tables are rejected explicitly.
@Howlite-UI
Howlite-UI merged commit d372f55 into Howlite-UI:main Oct 14, 2026
@Howlite-UI

Copy link
Copy Markdown
Owner

Thanks for catching this bug and providing a clean fix! Really appreciate your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants