Fix #338 - Phantoms always burning bug

This commit is contained in:
BillyGalbreath
2021-05-16 20:26:54 -05:00
parent 8fa99b34fb
commit bb9d72d1f4
4 changed files with 7 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ Subject: [PATCH] Phantoms burn in light
diff --git a/src/main/java/net/minecraft/world/entity/monster/EntityPhantom.java b/src/main/java/net/minecraft/world/entity/monster/EntityPhantom.java
index e20b26ae0435c593218541eba6c68ef297fea7c8..d19567abb1844295764e6289ca19602809a9b37a 100644
index e20b26ae0435c593218541eba6c68ef297fea7c8..8864c055940b182518a8e17180e2c1d27849b3ff 100644
--- a/src/main/java/net/minecraft/world/entity/monster/EntityPhantom.java
+++ b/src/main/java/net/minecraft/world/entity/monster/EntityPhantom.java
@@ -18,6 +18,7 @@ import net.minecraft.sounds.SoundEffect;
@@ -37,7 +37,7 @@ index e20b26ae0435c593218541eba6c68ef297fea7c8..d19567abb1844295764e6289ca196028
@Override
public void movementTick() {
- if (this.isAlive() && shouldBurnInDay && this.eG()) { // Paper - Configurable Burning
+ if (this.isAlive() && ((shouldBurnInDay || world.purpurConfig.phantomBurnInDaylight && this.isInDaylight()) || (world.purpurConfig.phantomBurnInLight > 0 && world.getLightLevel(new BlockPosition(this)) >= world.purpurConfig.phantomBurnInLight))) { // Purpur
+ if (this.isAlive() && ((this.isInDaylight() && (shouldBurnInDay || world.purpurConfig.phantomBurnInDaylight)) || (world.purpurConfig.phantomBurnInLight > 0 && world.getLightLevel(new BlockPosition(this)) >= world.purpurConfig.phantomBurnInLight))) { // Paper - Configurable Burning // Purpur
this.setOnFire(8);
}