@@ -35,7 +35,7 @@ index 34e0fbef06b0c7aededf27fe9dc64f3f6f33e3ae..ce3e5ec505ac37c820436bcf7c7d6452
3535 this.type = entityType;
3636 this.level = level;
3737diff --git a/net/minecraft/world/entity/LivingEntity.java b/net/minecraft/world/entity/LivingEntity.java
38- index 385f7664d51056efd47f685514a98b71784e8ba3..4bd5e7cbaab0998e782bc67d3ba079a80ac40789 100644
38+ index f22862464068180a4276175bf79c40394523703f..3d93e89e7bad80cd5b5c7ccbb738980f4b3469bc 100644
3939--- a/net/minecraft/world/entity/LivingEntity.java
4040+++ b/net/minecraft/world/entity/LivingEntity.java
4141@@ -286,6 +286,7 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
@@ -58,7 +58,7 @@ index 385f7664d51056efd47f685514a98b71784e8ba3..4bd5e7cbaab0998e782bc67d3ba079a8
5858 } // Paper - The sleeping pos will always also set the actual pos, so a desync suggests something is wrong
5959 }, this::clearSleepingPos);
6060 input.read("Brain", Codec.PASSTHROUGH).ifPresent(dynamic -> this.brain = this.makeBrain((Dynamic<?>)dynamic));
61- + this.shouldBurnInDay = input.getBooleanOr("Purpur.ShouldBurnInDay", false ); // Purpur - API for any mob to burn daylight
61+ + this.shouldBurnInDay = input.getBooleanOr("Purpur.ShouldBurnInDay", this.shouldBurnInDay ); // Purpur - API for any mob to burn daylight
6262 this.lastHurtByPlayer = EntityReference.read(input, "last_hurt_by_player");
6363 this.lastHurtByPlayerMemoryTime = input.getIntOr("last_hurt_by_player_memory_time", 0);
6464 this.lastHurtByMob = EntityReference.read(input, "last_hurt_by_mob");
@@ -207,9 +207,18 @@ index 9baec22561093d64157d93449e84c23b3f238b39..3f331215ef49c52fa3a53bcf744159d2
207207
208208 @Override
209209diff --git a/net/minecraft/world/entity/monster/Phantom.java b/net/minecraft/world/entity/monster/Phantom.java
210- index 67dc738faef3ab414bf791692090aaea3dbe7385..2c7f11e165ea9f59dca6de559c7bcba39977cb19 100644
210+ index 67dc738faef3ab414bf791692090aaea3dbe7385..512195d639e84684a32ad6fb53e527996b0a4d21 100644
211211--- a/net/minecraft/world/entity/monster/Phantom.java
212212+++ b/net/minecraft/world/entity/monster/Phantom.java
213+ @@ -53,7 +53,7 @@ public class Phantom extends Mob implements Enemy {
214+ // Paper start
215+ @Nullable
216+ public java.util.UUID spawningEntity;
217+ - public boolean shouldBurnInDay = true;
218+ + //public boolean shouldBurnInDay = true; // Purpur - API for any mob to burn daylight
219+ // Paper end
220+ private static final net.minecraft.world.item.crafting.Ingredient TORCH = net.minecraft.world.item.crafting.Ingredient.of(net.minecraft.world.item.Items.TORCH, net.minecraft.world.item.Items.SOUL_TORCH); // Purpur - Phantoms burn in light
221+
213222@@ -62,6 +62,7 @@ public class Phantom extends Mob implements Enemy {
214223 this.xpReward = 5;
215224 this.moveControl = new Phantom.PhantomMoveControl(this);
@@ -266,7 +275,7 @@ index 67dc738faef3ab414bf791692090aaea3dbe7385..2c7f11e165ea9f59dca6de559c7bcba3
266275 // Paper start
267276 output.storeNullable("Paper.SpawningEntity", net.minecraft.core.UUIDUtil.CODEC, this.spawningEntity);
268277- output.putBoolean("Paper.ShouldBurnInDay", this.shouldBurnInDay);
269- + output.putBoolean("Paper.ShouldBurnInDay", this.shouldBurnInDay); // Purpur - implemented in LivingEntity - API for any mob to burn daylight
278+ + // output.putBoolean("Paper.ShouldBurnInDay", this.shouldBurnInDay); // Purpur - implemented in LivingEntity - API for any mob to burn daylight
270279 // Paper end
271280 }
272281
0 commit comments