From 66d98f6ad2c7ac9e6180effa3179b6c38dfdaf29 Mon Sep 17 00:00:00 2001 From: Anton Date: Wed, 16 Jul 2014 10:39:41 +0400 Subject: [PATCH 01/15] Update ru_RU.lang --- resources/assets/wailaharvestability/lang/ru_RU.lang | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/assets/wailaharvestability/lang/ru_RU.lang b/resources/assets/wailaharvestability/lang/ru_RU.lang index 7c40faa..77ade2f 100644 --- a/resources/assets/wailaharvestability/lang/ru_RU.lang +++ b/resources/assets/wailaharvestability/lang/ru_RU.lang @@ -2,6 +2,7 @@ wailaharvestability.toolclass.pickaxe=Кирка wailaharvestability.toolclass.shovel=Лопата wailaharvestability.toolclass.axe=Топор +wailaharvestability.toolclass.chisel=Стамеска # tooltips wailaharvestability.effectivetool=Эффективный инструмент : From f934be031cc6fd2c485f8e450c48c4544881acf9 Mon Sep 17 00:00:00 2001 From: Vexatos Date: Sat, 19 Jul 2014 22:34:34 +0200 Subject: [PATCH 02/15] Create de_DE.lang --- .../wailaharvestability/lang/de_DE.lang | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 resources/assets/wailaharvestability/lang/de_DE.lang diff --git a/resources/assets/wailaharvestability/lang/de_DE.lang b/resources/assets/wailaharvestability/lang/de_DE.lang new file mode 100644 index 0000000..0e2421d --- /dev/null +++ b/resources/assets/wailaharvestability/lang/de_DE.lang @@ -0,0 +1,22 @@ +# tools +wailaharvestability.toolclass.pickaxe=Spitzhacke +wailaharvestability.toolclass.shovel=Schaufel +wailaharvestability.toolclass.axe=Axt +wailaharvestability.toolclass.chisel=Meißel + +# tooltips +wailaharvestability.effectivetool=Effektives Werkzeug : +wailaharvestability.harvestlevel=Abbau-Level : +wailaharvestability.currentlyharvestable= Aktuell abbaubar + +# options +option.harvestability.harvestlevel=Abbau-Level +option.harvestability.effectivetool=Effektives Werkzeug +option.harvestability.currentlyharvestable=Aktuell abbaubar +option.harvestability.oresonly=Nur Erze +option.harvestability.harvestlevel.sneakingonly=Nur schleichend: Abbau-Level +option.harvestability.effectivetool.sneakingonly=Nur schleichend: Effektives Werkzeug +option.harvestability.currentlyharvestable.sneakingonly=Nur schleichend: Abbaubarkeit +option.harvestability.minimal=Minimalmodus +option.harvestability.unharvestableonly=Nur nicht erntbares +option.harvestability.toolrequiredonly=Nur, wenn Werkzeug benötigt From e2faf5457ebdc5f47ce7346435c8fa9ab34314b7 Mon Sep 17 00:00:00 2001 From: Ton Broekhuizen Date: Thu, 31 Jul 2014 19:04:23 +0200 Subject: [PATCH 03/15] Added language support for Forestry scoops --- resources/assets/wailaharvestability/lang/en_US.lang | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/assets/wailaharvestability/lang/en_US.lang b/resources/assets/wailaharvestability/lang/en_US.lang index 863be1e..2ddf333 100644 --- a/resources/assets/wailaharvestability/lang/en_US.lang +++ b/resources/assets/wailaharvestability/lang/en_US.lang @@ -3,6 +3,7 @@ wailaharvestability.toolclass.pickaxe=Pickaxe wailaharvestability.toolclass.shovel=Shovel wailaharvestability.toolclass.axe=Axe wailaharvestability.toolclass.chisel=Chisel +wailaharvestability.toolclass.scoop=Scoop # tooltips wailaharvestability.effectivetool=Effective Tool : @@ -19,4 +20,4 @@ option.harvestability.effectivetool.sneakingonly=Sneak only: Effective tool option.harvestability.currentlyharvestable.sneakingonly=Sneak only: Harvestable option.harvestability.minimal=Minimal mode option.harvestability.unharvestableonly=Unharvestable only -option.harvestability.toolrequiredonly=Tool required only \ No newline at end of file +option.harvestability.toolrequiredonly=Tool required only From df0dc3c900117f0c8e568017b4a33a134b3975a4 Mon Sep 17 00:00:00 2001 From: TheVikingWarrior Date: Thu, 31 Jul 2014 21:04:06 +0200 Subject: [PATCH 04/15] Update it_IT.lang --- resources/assets/wailaharvestability/lang/it_IT.lang | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/assets/wailaharvestability/lang/it_IT.lang b/resources/assets/wailaharvestability/lang/it_IT.lang index 8778000..82c9eb7 100644 --- a/resources/assets/wailaharvestability/lang/it_IT.lang +++ b/resources/assets/wailaharvestability/lang/it_IT.lang @@ -3,6 +3,7 @@ wailaharvestability.toolclass.pickaxe=Piccone wailaharvestability.toolclass.shovel=Pala wailaharvestability.toolclass.axe=Ascia wailaharvestability.toolclass.chisel=Cesello +wailaharvestability.toolclass.scoop=Retino # tooltips wailaharvestability.effectivetool=Attrezzo richiesto : From fb302fff0bea2c748635f1fc2daeb23c6c117c69 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 2 Aug 2014 15:50:20 +0400 Subject: [PATCH 05/15] Update ru_RU.lang --- resources/assets/wailaharvestability/lang/ru_RU.lang | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/assets/wailaharvestability/lang/ru_RU.lang b/resources/assets/wailaharvestability/lang/ru_RU.lang index 77ade2f..d66c22f 100644 --- a/resources/assets/wailaharvestability/lang/ru_RU.lang +++ b/resources/assets/wailaharvestability/lang/ru_RU.lang @@ -3,6 +3,7 @@ wailaharvestability.toolclass.pickaxe=Кирка wailaharvestability.toolclass.shovel=Лопата wailaharvestability.toolclass.axe=Топор wailaharvestability.toolclass.chisel=Стамеска +wailaharvestability.toolclass.scoop=Сачок # tooltips wailaharvestability.effectivetool=Эффективный инструмент : From b1f82f8914900852afbb15cf7ad13b947a4e760f Mon Sep 17 00:00:00 2001 From: squeek Date: Mon, 18 Aug 2014 13:20:10 -0700 Subject: [PATCH 06/15] Added localization for Railcraft crowbar --- resources/assets/wailaharvestability/lang/en_US.lang | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/assets/wailaharvestability/lang/en_US.lang b/resources/assets/wailaharvestability/lang/en_US.lang index 2ddf333..9816f6e 100644 --- a/resources/assets/wailaharvestability/lang/en_US.lang +++ b/resources/assets/wailaharvestability/lang/en_US.lang @@ -4,6 +4,7 @@ wailaharvestability.toolclass.shovel=Shovel wailaharvestability.toolclass.axe=Axe wailaharvestability.toolclass.chisel=Chisel wailaharvestability.toolclass.scoop=Scoop +wailaharvestability.toolclass.crowbar=Crowbar # tooltips wailaharvestability.effectivetool=Effective Tool : From b4521408745b213a65cd81cdc22270200de4776f Mon Sep 17 00:00:00 2001 From: TheVikingWarrior Date: Mon, 25 Aug 2014 17:43:13 +0200 Subject: [PATCH 07/15] Update it_IT.lang --- resources/assets/wailaharvestability/lang/it_IT.lang | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/assets/wailaharvestability/lang/it_IT.lang b/resources/assets/wailaharvestability/lang/it_IT.lang index 82c9eb7..484b47e 100644 --- a/resources/assets/wailaharvestability/lang/it_IT.lang +++ b/resources/assets/wailaharvestability/lang/it_IT.lang @@ -2,8 +2,9 @@ wailaharvestability.toolclass.pickaxe=Piccone wailaharvestability.toolclass.shovel=Pala wailaharvestability.toolclass.axe=Ascia -wailaharvestability.toolclass.chisel=Cesello +wailaharvestability.toolclass.chisel=Scalpello wailaharvestability.toolclass.scoop=Retino +wailaharvestability.toolclass.crowbar=Piede di porco # tooltips wailaharvestability.effectivetool=Attrezzo richiesto : From bf5e4aff6127be4deb85b43f33ac0fe461962644 Mon Sep 17 00:00:00 2001 From: James <645963056@qq.com> Date: Mon, 25 Aug 2014 23:51:43 +0800 Subject: [PATCH 08/15] Update zh_CN.lang --- .../wailaharvestability/lang/zh_CN.lang | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/assets/wailaharvestability/lang/zh_CN.lang b/resources/assets/wailaharvestability/lang/zh_CN.lang index b6b034e..c5ac8b9 100644 --- a/resources/assets/wailaharvestability/lang/zh_CN.lang +++ b/resources/assets/wailaharvestability/lang/zh_CN.lang @@ -3,22 +3,22 @@ wailaharvestability.toolclass.pickaxe=镐 wailaharvestability.toolclass.shovel=锹 wailaharvestability.toolclass.axe=斧 wailaharvestability.toolclass.chisel=凿子 - +wailaharvestability.toolclass.scoop=勺 +wailaharvestability.toolclass.crowbar=撬棍 # tooltips -wailaharvestability.effectivetool=采集工具 : -wailaharvestability.harvestlevel=开采等级 : +wailaharvestability.effectivetool=有效工具 : +wailaharvestability.harvestlevel=采集等级 : wailaharvestability.currentlyharvestable= 能否采集 - # options -option.harvestability.harvestlevel=开采等级 -option.harvestability.effectivetool=采集工具 +option.harvestability.harvestlevel=采集等级 +option.harvestability.effectivetool=有效工具 option.harvestability.currentlyharvestable=能否采集 option.harvestability.oresonly=仅显示矿物 -option.harvestability.harvestlevel.sneakingonly=仅潜行时显示: 开采级别 -option.harvestability.effectivetool.sneakingonly=仅潜行时显示: 采集工具 -option.harvestability.currentlyharvestable.sneakingonly=仅潜行时显示: 能否采集 +option.harvestability.harvestlevel.sneakingonly=仅潜行时显示:采集级别 +option.harvestability.effectivetool.sneakingonly=仅潜行时显示:有效工具 +option.harvestability.currentlyharvestable.sneakingonly=仅潜行时显示:能否采集 option.harvestability.minimal=缩小模式 option.harvestability.unharvestableonly=仅显示能否采集 -option.harvestability.toolrequiredonly=仅显示工具需求 +option.harvestability.toolrequiredonly=仅显示所需工具 From 1a94c4a41c96b3511c91787a148b3fd1682741fd Mon Sep 17 00:00:00 2001 From: squeek Date: Sun, 24 Aug 2014 23:01:04 -0700 Subject: [PATCH 09/15] Half-finished silk touchability/shearability code --- java/squeek/wailaharvestability/Config.java | 6 + .../wailaharvestability/WailaHandler.java | 108 +++++++++++++----- .../wailaharvestability/lang/en_US.lang | 2 + 3 files changed, 87 insertions(+), 29 deletions(-) diff --git a/java/squeek/wailaharvestability/Config.java b/java/squeek/wailaharvestability/Config.java index 337df8a..3e182fc 100644 --- a/java/squeek/wailaharvestability/Config.java +++ b/java/squeek/wailaharvestability/Config.java @@ -21,6 +21,11 @@ public class Config // for some reason \u2718 was getting translated as ? when compiled with gradle; no clue why but this seems to work private static final String NOT_CURRENTLY_HARVESTABLE_STRING_DEFAULT = String.valueOf(Character.toChars(0x2718)); + public static String SHEARABILITY_STRING; + private static final String SHEARABILITY_STRING_NAME = "shearability.string"; + // for some reason \u2718 was getting translated as ? when compiled with gradle; no clue why but this seems to work + private static final String SHEARABILITY_STRING_DEFAULT = String.valueOf(Character.toChars(0x2702)); + private static Configuration config; public static void init(File file) @@ -32,6 +37,7 @@ public class Config MINIMAL_SEPARATOR_STRING = config.get(CATEGORY_MAIN, MINIMAL_SEPARATOR_STRING_NAME, MINIMAL_SEPARATOR_STRING_DEFAULT).getString(); CURRENTLY_HARVESTABLE_STRING = config.get(CATEGORY_MAIN, CURRENTLY_HARVESTABLE_STRING_NAME, CURRENTLY_HARVESTABLE_STRING_DEFAULT).getString(); NOT_CURRENTLY_HARVESTABLE_STRING = config.get(CATEGORY_MAIN, NOT_CURRENTLY_HARVESTABLE_STRING_NAME, NOT_CURRENTLY_HARVESTABLE_STRING_DEFAULT).getString(); + SHEARABILITY_STRING = config.get(CATEGORY_MAIN, SHEARABILITY_STRING_NAME, SHEARABILITY_STRING_DEFAULT).getString(); save(); } diff --git a/java/squeek/wailaharvestability/WailaHandler.java b/java/squeek/wailaharvestability/WailaHandler.java index b174c02..8e0b36b 100644 --- a/java/squeek/wailaharvestability/WailaHandler.java +++ b/java/squeek/wailaharvestability/WailaHandler.java @@ -15,11 +15,17 @@ import mcp.mobius.waila.api.IWailaDataProvider; import mcp.mobius.waila.api.IWailaRegistrar; import mcp.mobius.waila.api.impl.ConfigHandler; import net.minecraft.block.Block; +import net.minecraft.enchantment.EnchantmentHelper; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemBlock; +import net.minecraft.item.ItemShears; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumChatFormatting; +import net.minecraft.util.MovingObjectPosition; import net.minecraft.util.StatCollector; +import net.minecraft.world.World; import net.minecraftforge.common.ForgeHooks; +import net.minecraftforge.common.IShearable; public class WailaHandler implements IWailaDataProvider { @@ -40,6 +46,7 @@ public class WailaHandler implements IWailaDataProvider { Block block = accessor.getBlock(); int meta = accessor.getMetadata(); + EntityPlayer player = accessor.getPlayer(); // for disguised blocks if (itemStack.getItem() instanceof ItemBlock) @@ -47,31 +54,48 @@ public class WailaHandler implements IWailaDataProvider block = Block.blocksList[itemStack.itemID]; meta = itemStack.getItemDamage(); } - - if (config.getConfig("harvestability.toolrequiredonly") && block.blockMaterial.isToolNotRequired()) - return toolTip; - boolean isSneaking = accessor.getPlayer().isSneaking(); + boolean minimalLayout = config.getConfig("harvestability.minimal", false); + + List stringParts = new ArrayList(); + getHarvestability(stringParts, player, block, meta, accessor.getPosition(), config, minimalLayout); + + if (!stringParts.isEmpty()) + { + if (minimalLayout) + toolTip.add(StringHelper.concatenateStringList(stringParts, EnumChatFormatting.RESET + Config.MINIMAL_SEPARATOR_STRING)); + else + toolTip.addAll(stringParts); + } + + return toolTip; + } + + public void getHarvestability(List stringList, EntityPlayer player, Block block, int meta, MovingObjectPosition position, IWailaConfigHandler config, boolean minimalLayout) + { + if (config.getConfig("harvestability.toolrequiredonly") && block.blockMaterial.isToolNotRequired()) + return; + + boolean isSneaking = player.isSneaking(); boolean showHarvestLevel = config.getConfig("harvestability.harvestlevel") && (!config.getConfig("harvestability.harvestlevel.sneakingonly") || isSneaking); boolean showEffectiveTool = config.getConfig("harvestability.effectivetool") && (!config.getConfig("harvestability.effectivetool.sneakingonly") || isSneaking); boolean showCurrentlyHarvestable = config.getConfig("harvestability.currentlyharvestable") && (!config.getConfig("harvestability.currentlyharvestable.sneakingonly") || isSneaking); - boolean showOresOnly = config.getConfig("harvestability.oresonly", false); - boolean minimalLayout = config.getConfig("harvestability.minimal", false); boolean hideWhileHarvestable = config.getConfig("harvestability.unharvestableonly", false); + boolean showOresOnly = config.getConfig("harvestability.oresonly", false); if (showHarvestLevel || showEffectiveTool || showCurrentlyHarvestable) { - if (showOresOnly && !OreHelper.isItemAnOre(itemStack)) + if (showOresOnly && !OreHelper.isBlockAnOre(block, meta)) { - return toolTip; + return; } - String toolClasses[] = new String[]{"pickaxe", "shovel", "axe"}; + String toolClasses[] = new String[]{"pickaxe", "shovel", "axe", "sword"}; int harvestLevels[] = new int[toolClasses.length]; boolean blockHasEffectiveTools = BlockHelper.getHarvestLevelsOf(block, meta, toolClasses, harvestLevels); - if (!blockHasEffectiveTools) - return toolTip; + //if (!blockHasEffectiveTools) + // return; int harvestLevel = -1; String effectiveTool = ""; @@ -92,39 +116,61 @@ public class WailaHandler implements IWailaDataProvider boolean isAboveMinHarvestLevel = false; boolean isHoldingTinkersTool = false; - ItemStack itemHeld = accessor.getPlayer().getHeldItem(); + ItemStack itemHeld = player.getHeldItem(); if (itemHeld != null) { isHoldingTinkersTool = ToolHelper.hasToolTag(itemHeld); - canHarvest = ToolHelper.canToolHarvestBlock(itemHeld, block, meta) || (!isHoldingTinkersTool && block.canHarvestBlock(accessor.getPlayer(), meta)); + canHarvest = ToolHelper.canToolHarvestBlock(itemHeld, block, meta) || (!isHoldingTinkersTool && block.canHarvestBlock(player, meta)); isAboveMinHarvestLevel = (showCurrentlyHarvestable || showHarvestLevel) && ToolHelper.canToolHarvestLevel(itemHeld, block, meta, harvestLevel); isEffective = showEffectiveTool && ToolHelper.isToolEffectiveAgainst(itemHeld, block, meta, effectiveTool); } - boolean isCurrentlyHarvestable = (canHarvest && isAboveMinHarvestLevel) || (!isHoldingTinkersTool && ForgeHooks.canHarvestBlock(block, accessor.getPlayer(), meta)); + boolean isCurrentlyHarvestable = (canHarvest && isAboveMinHarvestLevel) || (!isHoldingTinkersTool && ForgeHooks.canHarvestBlock(block, player, meta)); if (hideWhileHarvestable && isCurrentlyHarvestable) - return toolTip; - - List stringParts = new ArrayList(); + return; if (showCurrentlyHarvestable) - stringParts.add(ColorHelper.getBooleanColor(isCurrentlyHarvestable) + (isCurrentlyHarvestable ? Config.CURRENTLY_HARVESTABLE_STRING : Config.NOT_CURRENTLY_HARVESTABLE_STRING) + (!minimalLayout ? EnumChatFormatting.RESET + StatCollector.translateToLocal("wailaharvestability.currentlyharvestable") : "")); - if (harvestLevel != -1 && showEffectiveTool) - stringParts.add((!minimalLayout ? StatCollector.translateToLocal("wailaharvestability.effectivetool") : "") + ColorHelper.getBooleanColor(isEffective && (!isHoldingTinkersTool || canHarvest), isHoldingTinkersTool && isEffective && !canHarvest) + StatCollector.translateToLocal("wailaharvestability.toolclass." + effectiveTool)); - if (harvestLevel >= 1 && showHarvestLevel) - stringParts.add((!minimalLayout ? StatCollector.translateToLocal("wailaharvestability.harvestlevel") : "") + ColorHelper.getBooleanColor(isAboveMinHarvestLevel && canHarvest) + StringHelper.stripFormatting(StringHelper.getHarvestLevelName(harvestLevel))); - - if (!stringParts.isEmpty()) { - if (minimalLayout) - toolTip.add(StringHelper.concatenateStringList(stringParts, EnumChatFormatting.RESET + Config.MINIMAL_SEPARATOR_STRING)); - else - toolTip.addAll(stringParts); + String currentlyHarvestable = ColorHelper.getBooleanColor(isCurrentlyHarvestable) + (isCurrentlyHarvestable ? Config.CURRENTLY_HARVESTABLE_STRING : Config.NOT_CURRENTLY_HARVESTABLE_STRING) + (!minimalLayout ? EnumChatFormatting.RESET + StatCollector.translateToLocal("wailaharvestability.currentlyharvestable") : ""); + String shearability = getShearabilityString(player, block, meta, position, config); + String silkTouchability = getSilkTouchabilityString(player, block, meta, position, config); + String separator = (!shearability.isEmpty() || !silkTouchability.isEmpty() ? " " : ""); + stringList.add(currentlyHarvestable + separator + silkTouchability + (!silkTouchability.isEmpty() ? separator : "") + shearability); } + if (harvestLevel != -1 && showEffectiveTool) + stringList.add((!minimalLayout ? StatCollector.translateToLocal("wailaharvestability.effectivetool") : "") + ColorHelper.getBooleanColor(isEffective && (!isHoldingTinkersTool || canHarvest), isHoldingTinkersTool && isEffective && !canHarvest) + StatCollector.translateToLocal("wailaharvestability.toolclass." + effectiveTool)); + if (harvestLevel >= 1 && showHarvestLevel) + stringList.add((!minimalLayout ? StatCollector.translateToLocal("wailaharvestability.harvestlevel") : "") + ColorHelper.getBooleanColor(isAboveMinHarvestLevel && canHarvest) + StringHelper.stripFormatting(StringHelper.getHarvestLevelName(harvestLevel))); } + } + + public String getShearabilityString(EntityPlayer player, Block block, int meta, MovingObjectPosition position, IWailaConfigHandler config) + { + boolean isSneaking = player.isSneaking(); + boolean showShearability = config.getConfig("harvestability.shearability") && (!config.getConfig("harvestability.shearability.sneakingonly") || isSneaking); + + if (showShearability && block instanceof IShearable) + { + ItemStack itemHeld = player.getHeldItem(); + boolean isHoldingShears = itemHeld != null && itemHeld.getItem() instanceof ItemShears; + boolean isShearable = isHoldingShears && ((IShearable) block).isShearable(itemHeld, player.worldObj, position.blockX, position.blockY, position.blockZ); + return ColorHelper.getBooleanColor(isShearable, !isShearable && isHoldingShears) + Config.SHEARABILITY_STRING; + } + return ""; + } - return toolTip; + public String getSilkTouchabilityString(EntityPlayer player, Block block, int meta, MovingObjectPosition position, IWailaConfigHandler config) + { + boolean isSneaking = player.isSneaking(); + boolean showSilkTouchability = config.getConfig("harvestability.silktouchability") && (!config.getConfig("harvestability.silktouchability.sneakingonly") || isSneaking); + + if (showSilkTouchability && block.canSilkHarvest(player.worldObj, player, position.blockX, position.blockY, position.blockZ, meta)) + { + boolean hasSilkTouch = EnchantmentHelper.getSilkTouchModifier(player); + return ColorHelper.getBooleanColor(hasSilkTouch) + "\u2712"; + } + return ""; } @Override @@ -146,6 +192,10 @@ public class WailaHandler implements IWailaDataProvider configOptions.put("harvestability.minimal", false); configOptions.put("harvestability.unharvestableonly", false); configOptions.put("harvestability.toolrequiredonly", true); + configOptions.put("harvestability.shearability", true); + configOptions.put("harvestability.shearability.sneakingonly", true); + configOptions.put("harvestability.silktouchability", true); + configOptions.put("harvestability.silktouchability.sneakingonly", true); } public static void callbackRegister(IWailaRegistrar registrar) diff --git a/resources/assets/wailaharvestability/lang/en_US.lang b/resources/assets/wailaharvestability/lang/en_US.lang index 9816f6e..45ea060 100644 --- a/resources/assets/wailaharvestability/lang/en_US.lang +++ b/resources/assets/wailaharvestability/lang/en_US.lang @@ -10,6 +10,8 @@ wailaharvestability.toolclass.crowbar=Crowbar wailaharvestability.effectivetool=Effective Tool : wailaharvestability.harvestlevel=Harvest Level : wailaharvestability.currentlyharvestable= Currently Harvestable +wailaharvestability.shearable=Shearable : +wailaharvestability.silktouchable=Requires Silk Touch : # options option.harvestability.harvestlevel=Harvest level From e981c8b46dcf52869f3fb333f4c99ee15f323139 Mon Sep 17 00:00:00 2001 From: squeek Date: Mon, 25 Aug 2014 17:56:06 -0700 Subject: [PATCH 10/15] Fixed effective tool for blocks that use material-based tool effectiveness * For example, pickaxes are effective against all blocks with the Material.rock material --- .../helpers/BlockHelper.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/java/squeek/wailaharvestability/helpers/BlockHelper.java b/java/squeek/wailaharvestability/helpers/BlockHelper.java index 12890d1..b0ae422 100644 --- a/java/squeek/wailaharvestability/helpers/BlockHelper.java +++ b/java/squeek/wailaharvestability/helpers/BlockHelper.java @@ -1,11 +1,24 @@ package squeek.wailaharvestability.helpers; +import java.util.HashMap; import squeek.wailaharvestability.proxy.ProxyIguanaTweaks; import net.minecraft.block.Block; +import net.minecraft.block.material.Material; +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; +import net.minecraft.item.ItemTool; +import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; public class BlockHelper { + private static final HashMap testTools = new HashMap(); + static + { + testTools.put("pickaxe", new ItemStack(Item.pickaxeWood)); + testTools.put("shovel", new ItemStack(Item.shovelWood)); + testTools.put("axe", new ItemStack(Item.axeWood)); + } public static boolean getHarvestLevelsOf(Block block, int metadata, String[] toolClasses, int[] harvestLevels) { @@ -18,10 +31,35 @@ public class BlockHelper if (harvestLevels[i] != -1) hasEffectiveTools = true; + else + { + float hardness = 0f; + try + { + hardness = block.getBlockHardness(null, 0, 0, 0); + } + catch (Exception e) + { + } + if (hardness > 0f) + { + ItemStack testTool = testTools.get(toolClass); + if (testTool != null && testTool.getItem() instanceof ItemTool && testTool.getStrVsBlock(block) >= ((ItemTool) testTool.getItem()).efficiencyOnProperMaterial) + { + harvestLevels[i] = 0; + hasEffectiveTools = true; + } + } + } i++; } return hasEffectiveTools; } + + public static boolean isBlockUnbreakable(Block block, World world, int x, int y, int z) + { + return block.getBlockHardness(world, x, y, z) == -1.0f; + } } From 8055f8977680cb13c1adb8d34915e151bf6711a9 Mon Sep 17 00:00:00 2001 From: squeek Date: Mon, 25 Aug 2014 17:57:41 -0700 Subject: [PATCH 11/15] Fixed web block not having its harvest tool set --- .../ModWailaHarvestability.java | 2 ++ .../setup/MissingHarvestInfo.java | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 java/squeek/wailaharvestability/setup/MissingHarvestInfo.java diff --git a/java/squeek/wailaharvestability/ModWailaHarvestability.java b/java/squeek/wailaharvestability/ModWailaHarvestability.java index 499d3c3..6c61f41 100644 --- a/java/squeek/wailaharvestability/ModWailaHarvestability.java +++ b/java/squeek/wailaharvestability/ModWailaHarvestability.java @@ -2,6 +2,7 @@ package squeek.wailaharvestability; import squeek.wailaharvestability.helpers.ToolHelper; import squeek.wailaharvestability.proxy.ProxyIguanaTweaks; +import squeek.wailaharvestability.setup.MissingHarvestInfo; import cpw.mods.fml.common.Loader; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.EventHandler; @@ -28,6 +29,7 @@ public class ModWailaHarvestability @EventHandler public void init(FMLInitializationEvent event) { + MissingHarvestInfo.init(); FMLInterModComms.sendMessage("Waila", "register", "squeek.wailaharvestability.WailaHandler.callbackRegister"); } diff --git a/java/squeek/wailaharvestability/setup/MissingHarvestInfo.java b/java/squeek/wailaharvestability/setup/MissingHarvestInfo.java new file mode 100644 index 0000000..d02ab00 --- /dev/null +++ b/java/squeek/wailaharvestability/setup/MissingHarvestInfo.java @@ -0,0 +1,17 @@ +package squeek.wailaharvestability.setup; + +import net.minecraft.block.Block; +import net.minecraftforge.common.MinecraftForge; + +public class MissingHarvestInfo +{ + public static void init() + { + vanilla(); + } + + public static void vanilla() + { + MinecraftForge.setBlockHarvestLevel(Block.web, "sword", 0); + } +} From 6e8839172a8b84dabf32a8f6cd7477e3bac18a92 Mon Sep 17 00:00:00 2001 From: squeek Date: Mon, 25 Aug 2014 18:22:44 -0700 Subject: [PATCH 12/15] General improvements + silk touchability/shearability improvements * Made silk touch info only show when silk touching gives a different block than harvesting * Added special handling of unbreakable blocks * Fixed tool classes without localization strings showing the full unlocalized name (it just capitalizes the toolclass and shows that) * Fixed dead bush shearability (needs a special case, as it doesn't use the IShearable interface for whatever reason) --- .../wailaharvestability/WailaHandler.java | 58 ++++++++++++------- .../helpers/BlockHelper.java | 14 +---- .../wailaharvestability/lang/en_US.lang | 8 ++- 3 files changed, 47 insertions(+), 33 deletions(-) diff --git a/java/squeek/wailaharvestability/WailaHandler.java b/java/squeek/wailaharvestability/WailaHandler.java index 8e0b36b..74f6b32 100644 --- a/java/squeek/wailaharvestability/WailaHandler.java +++ b/java/squeek/wailaharvestability/WailaHandler.java @@ -4,11 +4,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; -import squeek.wailaharvestability.helpers.BlockHelper; -import squeek.wailaharvestability.helpers.ColorHelper; -import squeek.wailaharvestability.helpers.OreHelper; -import squeek.wailaharvestability.helpers.StringHelper; -import squeek.wailaharvestability.helpers.ToolHelper; +import java.util.Random; import mcp.mobius.waila.api.IWailaConfigHandler; import mcp.mobius.waila.api.IWailaDataAccessor; import mcp.mobius.waila.api.IWailaDataProvider; @@ -23,9 +19,13 @@ import net.minecraft.item.ItemStack; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.MovingObjectPosition; import net.minecraft.util.StatCollector; -import net.minecraft.world.World; import net.minecraftforge.common.ForgeHooks; import net.minecraftforge.common.IShearable; +import squeek.wailaharvestability.helpers.BlockHelper; +import squeek.wailaharvestability.helpers.ColorHelper; +import squeek.wailaharvestability.helpers.OreHelper; +import squeek.wailaharvestability.helpers.StringHelper; +import squeek.wailaharvestability.helpers.ToolHelper; public class WailaHandler implements IWailaDataProvider { @@ -73,15 +73,13 @@ public class WailaHandler implements IWailaDataProvider public void getHarvestability(List stringList, EntityPlayer player, Block block, int meta, MovingObjectPosition position, IWailaConfigHandler config, boolean minimalLayout) { - if (config.getConfig("harvestability.toolrequiredonly") && block.blockMaterial.isToolNotRequired()) - return; - boolean isSneaking = player.isSneaking(); boolean showHarvestLevel = config.getConfig("harvestability.harvestlevel") && (!config.getConfig("harvestability.harvestlevel.sneakingonly") || isSneaking); boolean showEffectiveTool = config.getConfig("harvestability.effectivetool") && (!config.getConfig("harvestability.effectivetool.sneakingonly") || isSneaking); boolean showCurrentlyHarvestable = config.getConfig("harvestability.currentlyharvestable") && (!config.getConfig("harvestability.currentlyharvestable.sneakingonly") || isSneaking); boolean hideWhileHarvestable = config.getConfig("harvestability.unharvestableonly", false); boolean showOresOnly = config.getConfig("harvestability.oresonly", false); + boolean toolRequiredOnly = config.getConfig("harvestability.toolrequiredonly"); if (showHarvestLevel || showEffectiveTool || showCurrentlyHarvestable) { @@ -90,12 +88,22 @@ public class WailaHandler implements IWailaDataProvider return; } + if (BlockHelper.isBlockUnbreakable(block, player.worldObj, position.blockX, position.blockY, position.blockZ)) + { + String unbreakableString = ColorHelper.getBooleanColor(false) + Config.NOT_CURRENTLY_HARVESTABLE_STRING + (!minimalLayout ? EnumChatFormatting.RESET + StatCollector.translateToLocal("wailaharvestability.harvestable") : ""); + stringList.add(unbreakableString); + return; + } + String toolClasses[] = new String[]{"pickaxe", "shovel", "axe", "sword"}; int harvestLevels[] = new int[toolClasses.length]; - boolean blockHasEffectiveTools = BlockHelper.getHarvestLevelsOf(block, meta, toolClasses, harvestLevels); + boolean blockHasEffectiveTools = BlockHelper.getHarvestLevelsOf(player.worldObj, position.blockX, position.blockY, position.blockZ, block, meta, toolClasses, harvestLevels); - //if (!blockHasEffectiveTools) - // return; + String shearability = getShearabilityString(player, block, meta, position, config); + String silkTouchability = getSilkTouchabilityString(player, block, meta, position, config); + + if (toolRequiredOnly && block.blockMaterial.isToolNotRequired() && !blockHasEffectiveTools && shearability.isEmpty() && silkTouchability.isEmpty()) + return; int harvestLevel = -1; String effectiveTool = ""; @@ -130,16 +138,22 @@ public class WailaHandler implements IWailaDataProvider if (hideWhileHarvestable && isCurrentlyHarvestable) return; - if (showCurrentlyHarvestable) + String currentlyHarvestable = showCurrentlyHarvestable ? ColorHelper.getBooleanColor(isCurrentlyHarvestable) + (isCurrentlyHarvestable ? Config.CURRENTLY_HARVESTABLE_STRING : Config.NOT_CURRENTLY_HARVESTABLE_STRING) + (!minimalLayout ? EnumChatFormatting.RESET + StatCollector.translateToLocal("wailaharvestability.currentlyharvestable") : "") : ""; + + if (!currentlyHarvestable.isEmpty() || !shearability.isEmpty() || !silkTouchability.isEmpty()) { - String currentlyHarvestable = ColorHelper.getBooleanColor(isCurrentlyHarvestable) + (isCurrentlyHarvestable ? Config.CURRENTLY_HARVESTABLE_STRING : Config.NOT_CURRENTLY_HARVESTABLE_STRING) + (!minimalLayout ? EnumChatFormatting.RESET + StatCollector.translateToLocal("wailaharvestability.currentlyharvestable") : ""); - String shearability = getShearabilityString(player, block, meta, position, config); - String silkTouchability = getSilkTouchabilityString(player, block, meta, position, config); String separator = (!shearability.isEmpty() || !silkTouchability.isEmpty() ? " " : ""); stringList.add(currentlyHarvestable + separator + silkTouchability + (!silkTouchability.isEmpty() ? separator : "") + shearability); } if (harvestLevel != -1 && showEffectiveTool) - stringList.add((!minimalLayout ? StatCollector.translateToLocal("wailaharvestability.effectivetool") : "") + ColorHelper.getBooleanColor(isEffective && (!isHoldingTinkersTool || canHarvest), isHoldingTinkersTool && isEffective && !canHarvest) + StatCollector.translateToLocal("wailaharvestability.toolclass." + effectiveTool)); + { + String effectiveToolString; + if (StatCollector.func_94522_b("wailaharvestability.toolclass." + effectiveTool)) + effectiveToolString = StatCollector.translateToLocal("wailaharvestability.toolclass." + effectiveTool); + else + effectiveToolString = effectiveTool.substring(0, 1).toUpperCase() + effectiveTool.substring(1); + stringList.add((!minimalLayout ? StatCollector.translateToLocal("wailaharvestability.effectivetool") : "") + ColorHelper.getBooleanColor(isEffective && (!isHoldingTinkersTool || canHarvest), isHoldingTinkersTool && isEffective && !canHarvest) + effectiveToolString); + } if (harvestLevel >= 1 && showHarvestLevel) stringList.add((!minimalLayout ? StatCollector.translateToLocal("wailaharvestability.harvestlevel") : "") + ColorHelper.getBooleanColor(isAboveMinHarvestLevel && canHarvest) + StringHelper.stripFormatting(StringHelper.getHarvestLevelName(harvestLevel))); } @@ -150,7 +164,7 @@ public class WailaHandler implements IWailaDataProvider boolean isSneaking = player.isSneaking(); boolean showShearability = config.getConfig("harvestability.shearability") && (!config.getConfig("harvestability.shearability.sneakingonly") || isSneaking); - if (showShearability && block instanceof IShearable) + if (showShearability && block instanceof IShearable || block == Block.deadBush) { ItemStack itemHeld = player.getHeldItem(); boolean isHoldingShears = itemHeld != null && itemHeld.getItem() instanceof ItemShears; @@ -167,8 +181,12 @@ public class WailaHandler implements IWailaDataProvider if (showSilkTouchability && block.canSilkHarvest(player.worldObj, player, position.blockX, position.blockY, position.blockZ, meta)) { - boolean hasSilkTouch = EnchantmentHelper.getSilkTouchModifier(player); - return ColorHelper.getBooleanColor(hasSilkTouch) + "\u2712"; + boolean silkTouchMatters = block.idDropped(meta, new Random(), 0) != block.blockID || block.quantityDropped(new Random()) <= 0; + if (silkTouchMatters) + { + boolean hasSilkTouch = EnchantmentHelper.getSilkTouchModifier(player); + return ColorHelper.getBooleanColor(hasSilkTouch) + "\u2712"; + } } return ""; } diff --git a/java/squeek/wailaharvestability/helpers/BlockHelper.java b/java/squeek/wailaharvestability/helpers/BlockHelper.java index b0ae422..515bd68 100644 --- a/java/squeek/wailaharvestability/helpers/BlockHelper.java +++ b/java/squeek/wailaharvestability/helpers/BlockHelper.java @@ -1,14 +1,13 @@ package squeek.wailaharvestability.helpers; import java.util.HashMap; -import squeek.wailaharvestability.proxy.ProxyIguanaTweaks; import net.minecraft.block.Block; -import net.minecraft.block.material.Material; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemTool; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; +import squeek.wailaharvestability.proxy.ProxyIguanaTweaks; public class BlockHelper { @@ -20,7 +19,7 @@ public class BlockHelper testTools.put("axe", new ItemStack(Item.axeWood)); } - public static boolean getHarvestLevelsOf(Block block, int metadata, String[] toolClasses, int[] harvestLevels) + public static boolean getHarvestLevelsOf(World world, int x, int y, int z, Block block, int metadata, String[] toolClasses, int[] harvestLevels) { int i = 0; boolean hasEffectiveTools = false; @@ -33,14 +32,7 @@ public class BlockHelper hasEffectiveTools = true; else { - float hardness = 0f; - try - { - hardness = block.getBlockHardness(null, 0, 0, 0); - } - catch (Exception e) - { - } + float hardness = block.getBlockHardness(world, x, y, z); if (hardness > 0f) { ItemStack testTool = testTools.get(toolClass); diff --git a/resources/assets/wailaharvestability/lang/en_US.lang b/resources/assets/wailaharvestability/lang/en_US.lang index 45ea060..21b3232 100644 --- a/resources/assets/wailaharvestability/lang/en_US.lang +++ b/resources/assets/wailaharvestability/lang/en_US.lang @@ -5,13 +5,13 @@ wailaharvestability.toolclass.axe=Axe wailaharvestability.toolclass.chisel=Chisel wailaharvestability.toolclass.scoop=Scoop wailaharvestability.toolclass.crowbar=Crowbar +wailaharvestability.toolclass.sword=Sword # tooltips wailaharvestability.effectivetool=Effective Tool : wailaharvestability.harvestlevel=Harvest Level : wailaharvestability.currentlyharvestable= Currently Harvestable -wailaharvestability.shearable=Shearable : -wailaharvestability.silktouchable=Requires Silk Touch : +wailaharvestability.harvestable= Harvestable # options option.harvestability.harvestlevel=Harvest level @@ -24,3 +24,7 @@ option.harvestability.currentlyharvestable.sneakingonly=Sneak only: Harvestable option.harvestability.minimal=Minimal mode option.harvestability.unharvestableonly=Unharvestable only option.harvestability.toolrequiredonly=Tool required only +option.harvestability.shearability=Shearability +option.harvestability.shearability.sneakingonly=Sneak only: Shearability +option.harvestability.silktouchability=Silk Touchability +option.harvestability.silktouchability.sneakingonly=Sneak only: Silk Touchability From 3aa13665883348475a6359e72072149242ad02dd Mon Sep 17 00:00:00 2001 From: squeek Date: Mon, 25 Aug 2014 18:31:04 -0700 Subject: [PATCH 13/15] Fixed silk touchability string not being configurable --- java/squeek/wailaharvestability/Config.java | 14 ++++++++------ java/squeek/wailaharvestability/WailaHandler.java | 2 +- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/java/squeek/wailaharvestability/Config.java b/java/squeek/wailaharvestability/Config.java index 3e182fc..35d94dc 100644 --- a/java/squeek/wailaharvestability/Config.java +++ b/java/squeek/wailaharvestability/Config.java @@ -13,18 +13,19 @@ public class Config public static String CURRENTLY_HARVESTABLE_STRING; private static final String CURRENTLY_HARVESTABLE_STRING_NAME = "is.currently.harvestable.string"; - // for some reason \u2714 was getting translated as ? when compiled with gradle; no clue why but this seems to work - private static final String CURRENTLY_HARVESTABLE_STRING_DEFAULT = String.valueOf(Character.toChars(0x2714)); + private static final String CURRENTLY_HARVESTABLE_STRING_DEFAULT = "\u2714"; public static String NOT_CURRENTLY_HARVESTABLE_STRING; private static final String NOT_CURRENTLY_HARVESTABLE_STRING_NAME = "not.currently.harvestable.string"; - // for some reason \u2718 was getting translated as ? when compiled with gradle; no clue why but this seems to work - private static final String NOT_CURRENTLY_HARVESTABLE_STRING_DEFAULT = String.valueOf(Character.toChars(0x2718)); + private static final String NOT_CURRENTLY_HARVESTABLE_STRING_DEFAULT = "\u2718"; public static String SHEARABILITY_STRING; private static final String SHEARABILITY_STRING_NAME = "shearability.string"; - // for some reason \u2718 was getting translated as ? when compiled with gradle; no clue why but this seems to work - private static final String SHEARABILITY_STRING_DEFAULT = String.valueOf(Character.toChars(0x2702)); + private static final String SHEARABILITY_STRING_DEFAULT = "\u2702"; + + public static String SILK_TOUCHABILITY_STRING; + private static final String SILK_TOUCHABILITY_STRING_NAME = "silk.touchability.string"; + private static final String SILK_TOUCHABILITY_STRING_DEFAULT = "\u2712"; private static Configuration config; @@ -38,6 +39,7 @@ public class Config CURRENTLY_HARVESTABLE_STRING = config.get(CATEGORY_MAIN, CURRENTLY_HARVESTABLE_STRING_NAME, CURRENTLY_HARVESTABLE_STRING_DEFAULT).getString(); NOT_CURRENTLY_HARVESTABLE_STRING = config.get(CATEGORY_MAIN, NOT_CURRENTLY_HARVESTABLE_STRING_NAME, NOT_CURRENTLY_HARVESTABLE_STRING_DEFAULT).getString(); SHEARABILITY_STRING = config.get(CATEGORY_MAIN, SHEARABILITY_STRING_NAME, SHEARABILITY_STRING_DEFAULT).getString(); + SILK_TOUCHABILITY_STRING = config.get(CATEGORY_MAIN, SILK_TOUCHABILITY_STRING_NAME, SILK_TOUCHABILITY_STRING_DEFAULT).getString(); save(); } diff --git a/java/squeek/wailaharvestability/WailaHandler.java b/java/squeek/wailaharvestability/WailaHandler.java index 74f6b32..241d753 100644 --- a/java/squeek/wailaharvestability/WailaHandler.java +++ b/java/squeek/wailaharvestability/WailaHandler.java @@ -185,7 +185,7 @@ public class WailaHandler implements IWailaDataProvider if (silkTouchMatters) { boolean hasSilkTouch = EnchantmentHelper.getSilkTouchModifier(player); - return ColorHelper.getBooleanColor(hasSilkTouch) + "\u2712"; + return ColorHelper.getBooleanColor(hasSilkTouch) + Config.SILK_TOUCHABILITY_STRING; } } return ""; From 87d85e9a28bb02c45358be5edf0cf709cbcb8b90 Mon Sep 17 00:00:00 2001 From: squeek Date: Mon, 25 Aug 2014 19:07:15 -0700 Subject: [PATCH 14/15] Added "Harvestable" string to the language files using the "Currently Harvestable" string as a reference * Note: The "Harvestable" string is only used for unbreakable blocks --- resources/assets/wailaharvestability/lang/de_DE.lang | 1 + resources/assets/wailaharvestability/lang/it_IT.lang | 1 + resources/assets/wailaharvestability/lang/ru_RU.lang | 1 + resources/assets/wailaharvestability/lang/zh_CN.lang | 1 + 4 files changed, 4 insertions(+) diff --git a/resources/assets/wailaharvestability/lang/de_DE.lang b/resources/assets/wailaharvestability/lang/de_DE.lang index 0e2421d..f16d268 100644 --- a/resources/assets/wailaharvestability/lang/de_DE.lang +++ b/resources/assets/wailaharvestability/lang/de_DE.lang @@ -8,6 +8,7 @@ wailaharvestability.toolclass.chisel=Meißel wailaharvestability.effectivetool=Effektives Werkzeug : wailaharvestability.harvestlevel=Abbau-Level : wailaharvestability.currentlyharvestable= Aktuell abbaubar +wailaharvestability.harvestable= Abbaubar # options option.harvestability.harvestlevel=Abbau-Level diff --git a/resources/assets/wailaharvestability/lang/it_IT.lang b/resources/assets/wailaharvestability/lang/it_IT.lang index 484b47e..78ddc25 100644 --- a/resources/assets/wailaharvestability/lang/it_IT.lang +++ b/resources/assets/wailaharvestability/lang/it_IT.lang @@ -10,6 +10,7 @@ wailaharvestability.toolclass.crowbar=Piede di porco wailaharvestability.effectivetool=Attrezzo richiesto : wailaharvestability.harvestlevel=Livello richiesto : wailaharvestability.currentlyharvestable= Può essere raccolto +wailaharvestability.harvestable= Può essere raccolto # options option.harvestability.harvestlevel=Livello richiesto diff --git a/resources/assets/wailaharvestability/lang/ru_RU.lang b/resources/assets/wailaharvestability/lang/ru_RU.lang index d66c22f..926a1cc 100644 --- a/resources/assets/wailaharvestability/lang/ru_RU.lang +++ b/resources/assets/wailaharvestability/lang/ru_RU.lang @@ -9,6 +9,7 @@ wailaharvestability.toolclass.scoop=Сачок wailaharvestability.effectivetool=Эффективный инструмент : wailaharvestability.harvestlevel=Уровень сбора : wailaharvestability.currentlyharvestable= Можно собрать +wailaharvestability.harvestable= Можно собрать # options option.harvestability.harvestlevel=Уровень сбора diff --git a/resources/assets/wailaharvestability/lang/zh_CN.lang b/resources/assets/wailaharvestability/lang/zh_CN.lang index c5ac8b9..3700331 100644 --- a/resources/assets/wailaharvestability/lang/zh_CN.lang +++ b/resources/assets/wailaharvestability/lang/zh_CN.lang @@ -10,6 +10,7 @@ wailaharvestability.toolclass.crowbar=撬棍 wailaharvestability.effectivetool=有效工具 : wailaharvestability.harvestlevel=采集等级 : wailaharvestability.currentlyharvestable= 能否采集 +wailaharvestability.harvestable= 能否采集 # options option.harvestability.harvestlevel=采集等级 From 3786cdad0ec7b7029f270dd5f9e6260e410c17ad Mon Sep 17 00:00:00 2001 From: squeek Date: Mon, 25 Aug 2014 19:09:55 -0700 Subject: [PATCH 15/15] Added link to MCF forum thread to README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 903c3fa..26c5264 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Waila Harvestability An add-on for Waila that adds information about the harvestability of what you are looking at -[Minecraft Forum Thread]() +[Minecraft Forum Thread](http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1295067-waila-harvestability-how-can-i-harvest-what-im) ###Building