Safety guards for blockstates, remove all useless casts

This commit is contained in:
Vincent Lee committed 2016-01-07 19:55:54 -06:00
1 parent e58eb1b345
commit 20b5743221
45 files changed
+93 -67

No files matched your search

@@ -35,7 +35,7 @@ public class BlockRedStringDispenser extends BlockRedString {
@Override
public int getMetaFromState(IBlockState state) {
int meta = ((EnumFacing) state.getValue(BotaniaStateProps.FACING)).getIndex();
int meta = state.getValue(BotaniaStateProps.FACING).getIndex();
if (state.getValue(BotaniaStateProps.POWERED)) {
meta |= 8;
} else {