Archiviert
13
0

Made health regeneration only occur if difficulty is set to 0 (Peaceful).

Dieser Commit ist enthalten in:
EvilSeph 2011-09-20 16:31:43 -04:00
Ursprung e4d58faf5b
Commit 0a52c7f334

Datei anzeigen

@ -291,8 +291,8 @@ public abstract class EntityHuman extends EntityLiving {
--this.n; --this.n;
} }
// CraftBukkit - spawnMonsters -> allowMonsters if (this.world.spawnMonsters == 0 && this.health < 20 && this.ticksLived % 20 * 12 == 0) {
if (!this.world.allowMonsters && this.health < 20 && this.ticksLived % 20 * 12 == 0) { // CraftBukkit - added regain reason of "REGEN" for filtering purposes.
this.c(1, RegainReason.REGEN); this.c(1, RegainReason.REGEN);
} }