diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/EntitySheep.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntitySheep.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/EntitySheep.java b/src/main/java/net/minecraft/server/EntitySheep.java index 46f077e4..b10dac1d 100644 --- a/src/main/java/net/minecraft/server/EntitySheep.java +++ b/src/main/java/net/minecraft/server/EntitySheep.java @@ -35,7 +35,7 @@ public class EntitySheep extends EntityAnimal { // CraftBukkit end } - protected int e() { + protected int getLootId() { return Block.WOOL.id; } @@ -58,7 +58,7 @@ public class EntitySheep extends EntityAnimal { int j; int k; - if (!this.E() && this.b <= 0 && (this.l() && this.random.nextInt(50) == 0 || this.random.nextInt(1000) == 0)) { + if (!this.E() && this.b <= 0 && (this.isBaby() && this.random.nextInt(50) == 0 || this.random.nextInt(1000) == 0)) { i = MathHelper.floor(this.locX); j = MathHelper.floor(this.locY); k = MathHelper.floor(this.locZ); @@ -84,7 +84,7 @@ public class EntitySheep extends EntityAnimal { if (flag) { this.setSheared(false); - if (this.l()) { + if (this.isBaby()) { int l = this.getAge() + 1200; if (l > 0) { @@ -104,7 +104,7 @@ public class EntitySheep extends EntityAnimal { public boolean b(EntityHuman entityhuman) { ItemStack itemstack = entityhuman.inventory.getItemInHand(); - if (itemstack != null && itemstack.id == Item.SHEARS.id && !this.isSheared() && !this.l()) { + if (itemstack != null && itemstack.id == Item.SHEARS.id && !this.isSheared() && !this.isBaby()) { if (!this.world.isStatic) { this.setSheared(true); int i = 1 + this.random.nextInt(3); |