From 45ec3f4a1c672d8910ef0260e4188a3109b42483 Mon Sep 17 00:00:00 2001 From: kross <135918757+krossgg@users.noreply.github.com> Date: Sun, 12 Jan 2025 14:46:12 -0500 Subject: [PATCH] Fix duplication for blocks that drop themself --- .../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()); } }