diff --git a/src/main/java/forestry/core/utils/BlockUtil.java b/src/main/java/forestry/core/utils/BlockUtil.java index a9a98b17d..87c05d68e 100644 --- a/src/main/java/forestry/core/utils/BlockUtil.java +++ b/src/main/java/forestry/core/utils/BlockUtil.java @@ -230,20 +230,11 @@ public abstract class BlockUtil { return vec != null && (vec.xCoord >= minX && vec.xCoord <= maxX && vec.yCoord >= minY && vec.yCoord <= maxY); } - private static Class BW_MetaGenerated_WerkstoffBlocksClass; private static Class GTBlockMachines_Class; private static Block GTBlockMachines; - private static final boolean bw = Loader.isModLoaded("bartworks"); private static final boolean gt = Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi"); static { - if (bw) try { - // noinspection unchecked - BW_MetaGenerated_WerkstoffBlocksClass = (Class) Class - .forName("bartworks.system.material.BWMetaGeneratedWerkstoffBlocks"); - } catch (ClassNotFoundException e) { - e.printStackTrace(); - } if (gt) try { // noinspection unchecked GTBlockMachines_Class = (Class) Class.forName("gregtech.common.blocks.BlockMachines"); @@ -265,11 +256,6 @@ public abstract class BlockUtil { } while (stillInside.test(tile)); block = world.getBlock(x, y - depth, z); - if (bw && BW_MetaGenerated_WerkstoffBlocksClass != null - && BW_MetaGenerated_WerkstoffBlocksClass.isInstance(block)) { - return new ItemStack(block, 1, block.getDamageValue(world, x, y - depth, z)); - } - if (gt && GTBlockMachines_Class != null && GTBlockMachines != null && GTBlockMachines_Class.isInstance(block)) { return new ItemStack(GTBlockMachines, 1, block.getDamageValue(world, x, y - depth, z)); }