summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityGhast.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityGhast.java')
-rw-r--r--src/main/java/net/minecraft/server/EntityGhast.java8
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 62d8baf3..2ef30782 100644
--- a/src/main/java/net/minecraft/server/EntityGhast.java
+++ b/src/main/java/net/minecraft/server/EntityGhast.java
@@ -31,13 +31,13 @@ public class EntityGhast extends EntityFlying implements IMonster {
public void s_() {
super.s_();
- byte b0 = this.datawatcher.a(16);
+ byte b0 = this.datawatcher.getByte(16);
this.texture = b0 == 1 ? "/mob/ghast_fire.png" : "/mob/ghast.png";
}
protected void c_() {
- if (!this.world.isStatic && this.world.spawnMonsters == 0) {
+ if (!this.world.isStatic && this.world.difficulty == 0) {
this.die();
}
@@ -140,7 +140,7 @@ public class EntityGhast extends EntityFlying implements IMonster {
}
if (!this.world.isStatic) {
- byte b0 = this.datawatcher.a(16);
+ byte b0 = this.datawatcher.getByte(16);
byte b1 = (byte) (this.f > 10 ? 1 : 0);
if (b0 != b1) {
@@ -186,7 +186,7 @@ public class EntityGhast extends EntityFlying implements IMonster {
}
public boolean d() {
- return this.random.nextInt(20) == 0 && super.d() && this.world.spawnMonsters > 0;
+ return this.random.nextInt(20) == 0 && super.d() && this.world.difficulty > 0;
}
public int m() {