diff options
author | Erik Broes <erikbroes@grum.nl> | 2012-01-14 21:03:48 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2012-01-15 10:52:37 +0100 |
commit | 61ec751ca11f5bff9ec2dd1644982d5628270004 (patch) | |
tree | 8829269e1c5807b55566d367bec5ee630d5dfb1d /src/main/java/net/minecraft/server/EntityGhast.java | |
parent | 6495eee0c9fddcce2c2aa9bf9c45118abea180c1 (diff) | |
download | craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar.gz craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar.lz craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar.xz craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.zip |
Update for 1.1_01 renames.
We know these updates (can) break plugins bypassing Bukkit. They are needed for
smooth updates however. There will be another one right before before 1.1-R1.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityGhast.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityGhast.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/EntityGhast.java b/src/main/java/net/minecraft/server/EntityGhast.java index b6c585c3..229ce1a7 100644 --- a/src/main/java/net/minecraft/server/EntityGhast.java +++ b/src/main/java/net/minecraft/server/EntityGhast.java @@ -63,7 +63,7 @@ public class EntityGhast extends EntityFlying implements IMonster { double d0 = this.b - this.locX; double d1 = this.c - this.locY; double d2 = this.d - this.locZ; - double d3 = (double) MathHelper.a(d0 * d0 + d1 * d1 + d2 * d2); + double d3 = (double) MathHelper.sqrt(d0 * d0 + d1 * d1 + d2 * d2); if (d3 < 1.0D || d3 > 60.0D) { this.b = this.locX + (double) ((this.random.nextFloat() * 2.0F - 1.0F) * 16.0F); @@ -194,7 +194,7 @@ public class EntityGhast extends EntityFlying implements IMonster { return "mob.ghast.death"; } - protected int e() { + protected int getLootId() { return Item.SULPHUR.id; } @@ -223,8 +223,8 @@ public class EntityGhast extends EntityFlying implements IMonster { return 10.0F; } - public boolean g() { - return this.random.nextInt(20) == 0 && super.g() && this.world.difficulty > 0; + public boolean canSpawn() { + return this.random.nextInt(20) == 0 && super.canSpawn() && this.world.difficulty > 0; } public int p() { |