From a708d0ad7de777bf53199e2f28ceade6c08283b1 Mon Sep 17 00:00:00 2001 From: Alexander Anishin Date: Sun, 13 Oct 2024 18:34:45 +0300 Subject: Fixed dust output of Ore Drilling Plant (#3350) Co-authored-by: Martin Robertz --- .../machines/multi/MTEOreDrillingPlantBase.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/main/java/gregtech/common/tileentities') diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/MTEOreDrillingPlantBase.java b/src/main/java/gregtech/common/tileentities/machines/multi/MTEOreDrillingPlantBase.java index 6acc48c772..116ab720f9 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/MTEOreDrillingPlantBase.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/MTEOreDrillingPlantBase.java @@ -543,12 +543,17 @@ public abstract class MTEOreDrillingPlantBase extends MTEDrillerBase implements } if (oreBlock instanceof BlockOresAbstract) { TileEntity tTileEntity = getBaseMetaTileEntity().getTileEntity(posX, posY, posZ); - if (tTileEntity instanceof TileEntityOres && ((TileEntityOres) tTileEntity).mMetaData >= 16000) { - // GTLog.out.println("Running Small Ore"); - return oreBlock.getDrops(getBaseMetaTileEntity().getWorld(), posX, posY, posZ, blockMeta, mTier + 3); + if (tTileEntity instanceof TileEntityOres tTileEntityOres) { + if (tTileEntityOres.mMetaData >= 16000) { + // Small ore + return oreBlock + .getDrops(getBaseMetaTileEntity().getWorld(), posX, posY, posZ, blockMeta, mTier + 3); + } else { + return tTileEntityOres.getSilkTouchDrops(oreBlock); + } } } - // GTLog.out.println("Running Normal Ore"); + // Regular ore return oreBlock.getDrops(getBaseMetaTileEntity().getWorld(), posX, posY, posZ, blockMeta, 0); } -- cgit