Fix my breakage of the altar checking
This commit is contained in:
parent
250debb604
commit
83b26eb033
|
@ -130,15 +130,10 @@ public class UpgradedAltars
|
|||
Block block = world.getBlock(x + ac.getX(), y + ac.getY(), z + ac.getZ());
|
||||
int metadata = world.getBlockMetadata(x + ac.getX(), y + ac.getY(), z + ac.getZ());
|
||||
|
||||
if (ac.getBlock() == Blocks.beacon) {
|
||||
|
||||
if (block instanceof BlockBeacon)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (((ac.getBlock() != block) || (ac.getMetadata() != metadata)) && !(ac.getBlock() == Blocks.stonebrick && !world.isAirBlock(x + ac.getX(), y + ac.getY(), z + ac.getZ())))
|
||||
{
|
||||
return false;
|
||||
if (!(ac.getBlock() == Blocks.beacon && block instanceof BlockBeacon))
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue