Fix some inverted logic with Sentient Mimics (#1149)
This commit is contained in:
parent
273dca3e4d
commit
f576ec595b
|
@ -63,10 +63,10 @@ public class TileMimic extends TileInventory implements ITickable
|
||||||
}
|
}
|
||||||
|
|
||||||
internalCounter++;
|
internalCounter++;
|
||||||
if (internalCounter % potionSpawnInterval == 0 && this.getBlockMetadata() != BlockMimic.sentientMimicMeta)
|
if (internalCounter % potionSpawnInterval == 0 && this.getBlockMetadata() == BlockMimic.sentientMimicMeta)
|
||||||
{
|
{
|
||||||
ItemStack potionStack = this.getStackInSlot(1);
|
ItemStack potionStack = this.getStackInSlot(1);
|
||||||
if (potionStack != null)
|
if (!potionStack.isEmpty())
|
||||||
{
|
{
|
||||||
AxisAlignedBB bb = new AxisAlignedBB(this.getPos()).expand(playerCheckRadius, playerCheckRadius, playerCheckRadius);
|
AxisAlignedBB bb = new AxisAlignedBB(this.getPos()).expand(playerCheckRadius, playerCheckRadius, playerCheckRadius);
|
||||||
List<EntityPlayer> playerList = getWorld().getEntitiesWithinAABB(EntityPlayer.class, bb);
|
List<EntityPlayer> playerList = getWorld().getEntitiesWithinAABB(EntityPlayer.class, bb);
|
||||||
|
|
Loading…
Reference in a new issue