Don't register custom item stacks from Machine.regBlock - not needed anymore

This commit is contained in:
bdew committed 2014-04-23 14:09:01 +03:00
1 parent 522ac5b57b
commit d1d3df184f
1 file changed
-2
-2
View File
@@ -12,7 +12,6 @@ package net.bdew.lib.machine
import net.bdew.lib.recipes.gencfg.ConfigSection
import net.minecraft.block.Block
import cpw.mods.fml.common.registry.GameRegistry
import net.minecraft.item.ItemStack
import net.bdew.lib.block.HasTE
import net.bdew.lib.Misc
@@ -25,7 +24,6 @@ abstract class Machine[T <: Block](val name: String, blockConstruct: => T) {
def regBlock() {
block = blockConstruct
GameRegistry.registerBlock(block, name)
GameRegistry.registerCustomItemStack(name, new ItemStack(block))
if (block.isInstanceOf[HasTE[_]]) {
GameRegistry.registerTileEntity(block.asInstanceOf[HasTE[_]].TEClass, "%s.%s".format(modId, name))
}