Remove unneeded casts since 1.8.8 restores generics

This commit is contained in:
Vincent Lee committed 2015-12-21 12:53:59 -06:00
1 parent dbb549ba2a
commit c480a3303a
46 files changed
+71 -71

No files matched your search

@@ -67,7 +67,7 @@ public class BlockLightRelay extends BlockModContainer implements IWandable, ILe
@Override
public int getMetaFromState(IBlockState state) {
int meta = state.getValue(BotaniaStateProps.LUMINIZER_VARIANT) == LuminizerVariant.DETECTOR ? 1 : 0;
if (((Boolean) state.getValue(BotaniaStateProps.POWERED))) {
if (state.getValue(BotaniaStateProps.POWERED)) {
meta |= 8;
} else {
meta &= -9;
@@ -149,7 +149,7 @@ public class BlockLightRelay extends BlockModContainer implements IWandable, ILe
@Override
public int getWeakPower(IBlockAccess world, BlockPos pos, IBlockState state, EnumFacing s) {
return state.getValue(BotaniaStateProps.LUMINIZER_VARIANT) == LuminizerVariant.DEFAULT
&& ((Boolean) state.getValue(BotaniaStateProps.POWERED)) ? 15 : 0;
&& state.getValue(BotaniaStateProps.POWERED) ? 15 : 0;
}
@Override