mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 11:19:28 +00:00
We might be able to reduce some of the world breakage...particually of items (save the bees!)
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user