mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +00:00
Safety guards for blockstates, remove all useless casts
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user