From 3ade4a7ff62c4b6c23500abd1e7e8171a5e0dcd7 Mon Sep 17 00:00:00 2001 From: kross <135918757+krossgg@users.noreply.github.com> Date: Sun, 12 Jan 2025 14:55:50 -0500 Subject: [PATCH] Fix miner duplication for self-dropping blocks (#2734) --- .../gtceu/common/machine/trait/miner/LargeMinerLogic.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gregtechceu/gtceu/common/machine/trait/miner/LargeMinerLogic.java b/src/main/java/com/gregtechceu/gtceu/common/machine/trait/miner/LargeMinerLogic.java index b4638b6e80..b2ee81ad82 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/machine/trait/miner/LargeMinerLogic.java +++ b/src/main/java/com/gregtechceu/gtceu/common/machine/trait/miner/LargeMinerLogic.java @@ -152,6 +152,7 @@ protected boolean doPostProcessing(NonNullList 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()); } }