mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-28 23:59:25 +00:00
Remove unneeded casts since 1.8.8 restores generics
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user