Sun Spirits can't be trapped anymore!
This commit is contained in:
parent
b66bcae5d7
commit
61864678a8
1 changed files with 9 additions and 0 deletions
|
@ -223,6 +223,15 @@ public class EntitySunSpirit extends EntityFlying implements IMob, IAetherBoss
|
|||
{
|
||||
--this.chatCount;
|
||||
}
|
||||
|
||||
int i2 = (MathHelper.floor_double(this.posX) - 2) + this.rand.nextInt(4);
|
||||
int j2 = MathHelper.floor_double(this.posY) + this.rand.nextInt(2);
|
||||
int k2 = (MathHelper.floor_double(this.posZ) - 2) + this.rand.nextInt(4);
|
||||
|
||||
if(!(this.worldObj.getBlockState(new BlockPos.MutableBlockPos().setPos(i2, j2, k2)).getBlock() == BlocksAether.locked_dungeon_block && !(this.worldObj.getBlockState(new BlockPos.MutableBlockPos().setPos(i2, j2, k2)).getBlock() == Blocks.AIR)))
|
||||
{
|
||||
this.worldObj.setBlockState(new BlockPos(i2, j2, k2), Blocks.AIR.getDefaultState());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue