Adjusted code to prevent sheepuffs from being puffed up and sheared.

This commit is contained in:
bconlon 2020-06-05 15:11:43 -07:00
parent 29e9ae1bdf
commit 1f9e5254e8
2 changed files with 3 additions and 6 deletions

View file

@ -25,7 +25,7 @@ public class SheepuffAIEatAetherGrass extends EntityAIBase {
public boolean shouldExecute()
{
if (this.sheepuff.getRNG().nextInt(this.sheepuff.isChild() ? 50 : 1000) != 0)
if (this.sheepuff.getRNG().nextInt(1000) != 0)
{
return false;
}

View file

@ -128,11 +128,8 @@ public class EntitySheepuff extends EntityAetherAnimal {
if (itemstack != null && itemstack.getItem() == Items.shears && !this.getSheared()) {
if (!this.worldObj.isRemote) {
if (this.getPuffed()) {
this.setPuffed(false);
} else {
this.setSheared(true);
}
this.setSheared(true);
this.setPuffed(false);
int i = 2 + this.rand.nextInt(3);