diff options
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntityMobSpawner.java')
-rw-r--r-- | src/main/java/net/minecraft/server/TileEntityMobSpawner.java | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityMobSpawner.java b/src/main/java/net/minecraft/server/TileEntityMobSpawner.java index e2613e4e..9de8f5b5 100644 --- a/src/main/java/net/minecraft/server/TileEntityMobSpawner.java +++ b/src/main/java/net/minecraft/server/TileEntityMobSpawner.java @@ -35,13 +35,16 @@ public class TileEntityMobSpawner extends TileEntity { this.b -= 360.0D; } - if (this.spawnDelay == -1) { - this.c(); - } + if (!this.world.isStatic) { + if (this.spawnDelay == -1) { + this.c(); + } + + if (this.spawnDelay > 0) { + --this.spawnDelay; + return; + } - if (this.spawnDelay > 0) { - --this.spawnDelay; - } else { byte b0 = 4; for (int i = 0; i < b0; ++i) { @@ -83,14 +86,14 @@ public class TileEntityMobSpawner extends TileEntity { this.world.a("flame", d0, d1, d2, 0.0D, 0.0D, 0.0D); } - entityliving.R(); + entityliving.S(); this.c(); } } } - - super.g_(); } + + super.g_(); } } |