Remove pickDefaultState hack from 1.9 since it's unneeded now

This commit is contained in:
Vincent Lee committed 2017-07-22 17:14:46 -05:00
1 parent 73b440732a
commit 2b2f48f085
47 files changed
+54 -248

No files matched your search

@@ -31,16 +31,11 @@ public abstract class BlockMod extends Block implements IModelRegister {
public BlockMod(Material par2Material, String name) {
super(par2Material);
setUnlocalizedName(name);
setDefaultState(pickDefaultState()); // This MUST happen before registering the block
setRegistryName(new ResourceLocation(LibMisc.MOD_ID, name));
if(registerInCreative())
setCreativeTab(BotaniaCreativeTab.INSTANCE);
}
protected IBlockState pickDefaultState() {
return blockState.getBaseState();
}
protected boolean registerInCreative() {
return true;
}