diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityMushroomCow.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityMushroomCow.java | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/main/java/net/minecraft/server/EntityMushroomCow.java b/src/main/java/net/minecraft/server/EntityMushroomCow.java index e2322a87..b3860ec9 100644 --- a/src/main/java/net/minecraft/server/EntityMushroomCow.java +++ b/src/main/java/net/minecraft/server/EntityMushroomCow.java @@ -25,16 +25,18 @@ public class EntityMushroomCow extends EntityCow { // CraftBukkit end this.die(); - EntityCow entitycow = new EntityCow(this.world); - - entitycow.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, this.pitch); - entitycow.setHealth(this.getHealth()); - entitycow.V = this.V; - this.world.addEntity(entitycow); this.world.a("largeexplode", this.locX, this.locY + (double) (this.length / 2.0F), this.locZ, 0.0D, 0.0D, 0.0D); + if (!this.world.isStatic) { + EntityCow entitycow = new EntityCow(this.world); + + entitycow.setPositionRotation(this.locX, this.locY, this.locZ, this.yaw, this.pitch); + entitycow.setHealth(this.getHealth()); + entitycow.V = this.V; + this.world.addEntity(entitycow); - for (int i = 0; i < 5; ++i) { - this.world.addEntity(new EntityItem(this.world, this.locX, this.locY + (double) this.length, this.locZ, new ItemStack(Block.RED_MUSHROOM))); + for (int i = 0; i < 5; ++i) { + this.world.addEntity(new EntityItem(this.world, this.locX, this.locY + (double) this.length, this.locZ, new ItemStack(Block.RED_MUSHROOM))); + } } return true; @@ -43,7 +45,7 @@ public class EntityMushroomCow extends EntityCow { } } - protected EntityAnimal createChild(EntityAnimal entityanimal) { + public EntityAnimal createChild(EntityAnimal entityanimal) { return new EntityMushroomCow(this.world); } } |