mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-11-01 09:09:36 +00:00
Fixed players not healing in other worlds when spawn-monsters is false.
This commit is contained in:
parent
7efaa1a02e
commit
ff67eda4c4
1 changed files with 2 additions and 1 deletions
|
|
@ -176,7 +176,8 @@ public abstract class EntityHuman extends EntityLiving {
|
|||
}
|
||||
|
||||
public void u() {
|
||||
if (this.world.spawnMonsters == 0 && this.health < 20 && this.ticksLived % 20 * 12 == 0) {
|
||||
// CraftBukkit - spawnMonsters -> allowMonsters
|
||||
if (!this.world.allowMonsters && this.health < 20 && this.ticksLived % 20 * 12 == 0) {
|
||||
this.b(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue