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

@@ -47,6 +47,7 @@ public class BlockLightRelay extends BlockMod implements IWandable, ILexiconable
protected BlockLightRelay() {
super(Material.GLASS, LibBlockNames.LIGHT_RELAY);
setDefaultState(blockState.getBaseState().withProperty(BotaniaStateProps.LUMINIZER_VARIANT, LuminizerVariant.DEFAULT).withProperty(BotaniaStateProps.POWERED, false));
}
@Nonnull
@@ -61,11 +62,6 @@ public class BlockLightRelay extends BlockMod implements IWandable, ILexiconable
return new BlockStateContainer(this, BotaniaStateProps.LUMINIZER_VARIANT, BotaniaStateProps.POWERED);
}
@Override
protected IBlockState pickDefaultState() {
return blockState.getBaseState().withProperty(BotaniaStateProps.LUMINIZER_VARIANT, LuminizerVariant.DEFAULT).withProperty(BotaniaStateProps.POWERED, false);
}
@Override
public int getMetaFromState(IBlockState state) {
int meta = state.getValue(BotaniaStateProps.LUMINIZER_VARIANT).ordinal();