tweaked mob spawn density in pockets

This commit is contained in:
StevenRS11 2013-06-14 00:43:09 -04:00
parent ebf35a056a
commit 55c16f3ae2

View file

@ -310,6 +310,10 @@ public class MobObelisk extends EntityFlying implements IMob
{ {
return false; return false;
} }
else if(list.size()>5&&this.worldObj.provider instanceof pocketProvider)
{
return false;
}
return this.worldObj.checkNoEntityCollision(this.boundingBox) && this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).isEmpty() && !this.worldObj.isAnyLiquid(this.boundingBox); return this.worldObj.checkNoEntityCollision(this.boundingBox) && this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).isEmpty() && !this.worldObj.isAnyLiquid(this.boundingBox);
} }