From 6927c4d5fbd77c5b84977f8ebfe82f0c00f01c17 Mon Sep 17 00:00:00 2001 From: mezz Date: Thu, 20 Nov 2014 19:10:10 -0800 Subject: [PATCH] Add wildcard for OreDictionary where appropriate --- src/main/java/forestry/plugins/PluginApiculture.java | 2 +- src/main/java/forestry/plugins/PluginArboriculture.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/forestry/plugins/PluginApiculture.java b/src/main/java/forestry/plugins/PluginApiculture.java index 6b555b59d..11cabc519 100644 --- a/src/main/java/forestry/plugins/PluginApiculture.java +++ b/src/main/java/forestry/plugins/PluginApiculture.java @@ -416,7 +416,7 @@ public class PluginApiculture extends ForestryPlugin { // / BEE COMBS ForestryItem.beeComb.registerItem(new ItemHoneycomb(), "beeCombs"); - OreDictionary.registerOre("beeComb", ForestryItem.beeComb.getItemStack(1, Defaults.WILDCARD)); + OreDictionary.registerOre("beeComb", ForestryItem.beeComb.getWildcard()); // / APIARIST'S CLOTHES ForestryItem.apiaristHat.registerItem(new ItemArmorApiarist(0), "apiaristHelmet"); diff --git a/src/main/java/forestry/plugins/PluginArboriculture.java b/src/main/java/forestry/plugins/PluginArboriculture.java index bc14e41af..f2e81d5fd 100644 --- a/src/main/java/forestry/plugins/PluginArboriculture.java +++ b/src/main/java/forestry/plugins/PluginArboriculture.java @@ -257,7 +257,7 @@ public class PluginArboriculture extends ForestryPlugin { // Leaves ForestryBlock.leaves.registerBlock(new ForestryBlockLeaves(), ItemLeavesBlock.class, "leaves"); - OreDictionary.registerOre("treeLeaves", new ItemStack(ForestryBlock.leaves.item(), 1, OreDictionary.WILDCARD_VALUE)); + OreDictionary.registerOre("treeLeaves", ForestryBlock.leaves.getWildcard()); // Pods ForestryBlock.pods.registerBlock(new BlockFruitPod(), ItemForestryBlock.class, "pods"); @@ -334,7 +334,7 @@ public class PluginArboriculture extends ForestryPlugin { protected void registerItems() { ForestryItem.sapling.registerItem(new ItemGermlingGE(EnumGermlingType.SAPLING), "sapling"); - OreDictionary.registerOre("treeSapling", ForestryItem.sapling.getItemStack(1, -1)); + OreDictionary.registerOre("treeSapling", ForestryItem.sapling.getWildcard()); if (PluginManager.Module.APICULTURE.isEnabled()) { ForestryItem.pollenFertile.registerItem(new ItemGermlingGE(EnumGermlingType.POLLEN), "pollenFertile");