Fixed bug - Axe harvest stone blocks from Underground Biomes Construct (#1434)

This commit is contained in:
Servek 2018-04-12 01:33:51 +04:00 committed by Blood-Asp
parent b397abae97
commit 0c52368524

View file

@ -81,7 +81,7 @@ public class GT_Tool_Axe
public boolean isMinableBlock(Block aBlock, byte aMetaData) {
String tTool = aBlock.getHarvestTool(aMetaData);
return tTool == null || tTool.equals("axe") || (aBlock.getMaterial() == Material.wood);
return ((tTool == null) && aBlock.getMaterial().isToolNotRequired()) || (tTool != null && tTool.equals("axe")) || (aBlock.getMaterial() == Material.wood);
}
public int convertBlockDrops(List<ItemStack> aDrops, ItemStack aStack, EntityPlayer aPlayer, Block aBlock, int aX, int aY, int aZ, byte aMetaData, int aFortune, boolean aSilkTouch, BlockEvent.HarvestDropsEvent aEvent) {