mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 11:49:37 +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
@@ -36,7 +36,7 @@ public class BlockRedStringDispenser extends BlockRedString {
|
||||
@Override
|
||||
public int getMetaFromState(IBlockState state) {
|
||||
int meta = ((EnumFacing) state.getValue(BotaniaStateProps.FACING)).getIndex();
|
||||
if (((Boolean) state.getValue(BotaniaStateProps.POWERED))) {
|
||||
if (state.getValue(BotaniaStateProps.POWERED)) {
|
||||
meta |= 8;
|
||||
} else {
|
||||
meta &= -9;
|
||||
@@ -55,7 +55,7 @@ public class BlockRedStringDispenser extends BlockRedString {
|
||||
@Override
|
||||
public void onNeighborBlockChange(World world, BlockPos pos, IBlockState state, Block block) {
|
||||
boolean power = world.isBlockIndirectlyGettingPowered(pos) > 0 || world.isBlockIndirectlyGettingPowered(pos.up()) > 0;
|
||||
boolean powered = ((Boolean) state.getValue(BotaniaStateProps.POWERED));
|
||||
boolean powered = state.getValue(BotaniaStateProps.POWERED);
|
||||
|
||||
if(power && !powered) {
|
||||
((TileRedStringDispenser) world.getTileEntity(pos)).tickDispenser();
|
||||
|
||||
Reference in new issue
Block a user