From c99eb94d6b33c9fed80b708f8093ec1491eaef4a Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Mon, 18 Aug 2014 08:23:14 -0700 Subject: [PATCH] We might be able to reduce some of the world breakage...particually of items (save the bees!) --- src/main/java/forestry/core/proxy/ProxyCommon.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/forestry/core/proxy/ProxyCommon.java b/src/main/java/forestry/core/proxy/ProxyCommon.java index 524b5af2e..6a762abf9 100755 --- a/src/main/java/forestry/core/proxy/ProxyCommon.java +++ b/src/main/java/forestry/core/proxy/ProxyCommon.java @@ -44,6 +44,7 @@ import forestry.core.network.PacketCoordinates; import forestry.core.network.PacketFXSignal; import forestry.core.network.PacketIds; import forestry.core.render.SpriteSheet; +import forestry.core.utils.StringUtil; public class ProxyCommon { @@ -56,11 +57,11 @@ public class ProxyCommon { } public void registerBlock(Block block, Class itemClass) { - GameRegistry.registerBlock(block, itemClass, block.getUnlocalizedName()); + GameRegistry.registerBlock(block, itemClass, StringUtil.cleanBlockName(block)); } public void registerItem(Item item) { - GameRegistry.registerItem(item, item.getUnlocalizedName().replace("item.", "")); + GameRegistry.registerItem(item, StringUtil.cleanItemName(item)); } /**