diff options
| author | Minepolz320 <42765118+Minepolz320@users.noreply.github.com> | 2024-01-28 01:45:22 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-27 21:45:22 +0100 |
| commit | ef3f46cf4db9bda97529de32a805c8015ad40452 (patch) | |
| tree | fea4b0b19faed6f2c41f5832a3a4969e19a7c540 /src/main/java/gregtech/common/blocks | |
| parent | 3516447b38cbb435a5844c6b35cfe1b21b943815 (diff) | |
| download | GT5-Unofficial-ef3f46cf4db9bda97529de32a805c8015ad40452.tar.gz GT5-Unofficial-ef3f46cf4db9bda97529de32a805c8015ad40452.tar.bz2 GT5-Unofficial-ef3f46cf4db9bda97529de32a805c8015ad40452.zip | |
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.
Diffstat (limited to 'src/main/java/gregtech/common/blocks')
| -rw-r--r-- | src/main/java/gregtech/common/blocks/GT_Block_Machines.java | 15 |
1 files changed, 0 insertions, 15 deletions
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; @@ -75,19 +73,6 @@ public class GT_Block_Machines extends GT_Generic_Block implements IDebugableBlo } @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) { return "cutter"; |
