geforkt von Mirrors/Paper
Made health regeneration only occur if difficulty is set to 0 (Peaceful).
Dieser Commit ist enthalten in:
Ursprung
e4d58faf5b
Commit
0a52c7f334
@ -291,8 +291,8 @@ public abstract class EntityHuman extends EntityLiving {
|
||||
--this.n;
|
||||
}
|
||||
|
||||
// CraftBukkit - spawnMonsters -> allowMonsters
|
||||
if (!this.world.allowMonsters && this.health < 20 && this.ticksLived % 20 * 12 == 0) {
|
||||
if (this.world.spawnMonsters == 0 && this.health < 20 && this.ticksLived % 20 * 12 == 0) {
|
||||
// CraftBukkit - added regain reason of "REGEN" for filtering purposes.
|
||||
this.c(1, RegainReason.REGEN);
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren