Adjusted code to prevent sheepuffs from being puffed up and sheared.
This commit is contained in:
parent
29e9ae1bdf
commit
1f9e5254e8
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue