Skip to content

Commit

Permalink
Fix miner duplication for self-dropping blocks (#2734)
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg authored Jan 12, 2025
1 parent 4d06fd6 commit 3ade4a7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ protected boolean doPostProcessing(NonNullList<ItemStack> blockDrops, BlockState
LootParams.Builder builder) {
if (!super.doPostProcessing(blockDrops, blockState, builder) && getDropCountMultiplier() > 0) {
for (ItemStack drop : blockDrops) {
if (drop.is(blockState.getBlock().asItem())) continue;
drop.setCount(drop.getCount() * getDropCountMultiplier());
}
}
Expand Down

0 comments on commit 3ade4a7

Please sign in to comment.