From ef3f46cf4db9bda97529de32a805c8015ad40452 Mon Sep 17 00:00:00 2001 From: Minepolz320 <42765118+Minepolz320@users.noreply.github.com> Date: Sun, 28 Jan 2024 01:45:22 +0500 Subject: GT Tool Fixes and ore balance config (#2453) * Fixes/balance config Fixes that the ax and saw do not break ladders - ability to toggle ore multipliers for ore Nether and End - sneaking with a scythe/plow allows you to break only 1 block * Fix copy paste typo * Revert "Allow tools to break stuff with a lower harvest level (#2435)" This reverts commit ba1a9b290a09e39b100ff8d9f1f5e70cdc3f0fab. --- .../java/gregtech/common/blocks/GT_Block_Machines.java | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/main/java/gregtech/common/blocks') diff --git a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java index b2d62e3f3a..af41710054 100644 --- a/src/main/java/gregtech/common/blocks/GT_Block_Machines.java +++ b/src/main/java/gregtech/common/blocks/GT_Block_Machines.java @@ -37,14 +37,12 @@ import cpw.mods.fml.relauncher.SideOnly; import gregtech.api.GregTech_API; import gregtech.api.enums.Textures; import gregtech.api.interfaces.IDebugableBlock; -import gregtech.api.interfaces.IToolStats; import gregtech.api.interfaces.metatileentity.IMetaTileEntity; import gregtech.api.interfaces.tileentity.IColoredTileEntity; import gregtech.api.interfaces.tileentity.ICoverable; import gregtech.api.interfaces.tileentity.IDebugableTileEntity; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.items.GT_Generic_Block; -import gregtech.api.items.GT_MetaGenerated_Tool; import gregtech.api.metatileentity.BaseMetaPipeEntity; import gregtech.api.metatileentity.BaseMetaTileEntity; import gregtech.api.metatileentity.BaseTileEntity; @@ -74,19 +72,6 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo this.useNeighborBrightness = true; } - @Override - public boolean canHarvestBlock(EntityPlayer player, int meta) { - - ItemStack stack = player.inventory.getCurrentItem(); - if (stack != null && stack.getItem() instanceof GT_MetaGenerated_Tool gTool) { - IToolStats tStats = gTool.getToolStats(stack); - if (tStats == null) return false; - return tStats.isMinableBlock(this, (byte) meta); - } - - return super.canHarvestBlock(player, meta); - } - @Override public String getHarvestTool(int aMeta) { if (aMeta >= 8 && aMeta <= 11) { -- cgit