We might be able to reduce some of the world breakage...particually of items (save the bees!)

This commit is contained in:
CovertJaguar committed 2014-08-18 08:23:14 -07:00
1 parent 15d40439b6
commit c99eb94d6b
1 file changed
+3 -2
@@ -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<? extends ItemBlock> 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));
}
/**