Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 21:10:10 +01:00
Fixed players not healing in other worlds when spawn-monsters is false.
Dieser Commit ist enthalten in:
Ursprung
7efaa1a02e
Commit
ff67eda4c4
@ -176,7 +176,8 @@ public abstract class EntityHuman extends EntityLiving {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void u() {
|
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);
|
this.b(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren