diff --git a/build.gradle b/build.gradle index 34e53c6..fdcc560 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ buildscript { apply plugin: 'net.minecraftforge.gradle.forge' minecraft { - version = "1.10.2-12.18.0.2002-1.10.0" + version = "1.10.2-12.18.1.2056" mappings = "snapshot_20160518" runDir = "run" diff --git a/java/squeek/wailaharvestability/WailaHandler.java b/java/squeek/wailaharvestability/WailaHandler.java index e3af4cb..d9be725 100644 --- a/java/squeek/wailaharvestability/WailaHandler.java +++ b/java/squeek/wailaharvestability/WailaHandler.java @@ -104,7 +104,7 @@ public class WailaHandler implements IWailaDataProvider String shearability = getShearabilityString(player, block, blockState, position, config); String silkTouchability = getSilkTouchabilityString(player, block, blockState, position, config); - if (toolRequiredOnly && block.getMaterial(blockState).isToolNotRequired() && !blockHasEffectiveTools && shearability.isEmpty() && silkTouchability.isEmpty()) + if (toolRequiredOnly && blockState.getMaterial().isToolNotRequired() && !blockHasEffectiveTools && shearability.isEmpty() && silkTouchability.isEmpty()) return; boolean canHarvest = false; @@ -139,7 +139,7 @@ public class WailaHandler implements IWailaDataProvider effectiveToolString = I18n.format("wailaharvestability.toolclass." + effectiveTool); else effectiveToolString = effectiveTool.substring(0, 1).toUpperCase() + effectiveTool.substring(1); - stringList.add((!minimalLayout ? I18n.hasKey("wailaharvestability.effectivetool") : "") + ColorHelper.getBooleanColor(isEffective && (!isHoldingTinkersTool || canHarvest), isHoldingTinkersTool && isEffective && !canHarvest) + effectiveToolString); + stringList.add((!minimalLayout ? I18n.format("wailaharvestability.effectivetool") : "") + ColorHelper.getBooleanColor(isEffective && (!isHoldingTinkersTool || canHarvest), isHoldingTinkersTool && isEffective && !canHarvest) + effectiveToolString); } if (harvestLevel >= 1 && (showHarvestLevel || showHarvestLevelNum)) {