mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
Remove pickDefaultState hack from 1.9 since it's unneeded now
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user