aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMolean <[email protected]>2023-06-23 18:50:29 +0800
committerGitHub <[email protected]>2023-06-23 12:50:29 +0200
commit206dd3af05d9fde6cc66dd0d00d58d6628120f2c (patch)
tree72245ab1211bbe16bdffde7fda9939747763a2fb
parentb1696788d61ddc338bd2e61fac3b43ff60c432e1 (diff)
downloadPaper-206dd3af05d9fde6cc66dd0d00d58d6628120f2c.tar.gz
Paper-206dd3af05d9fde6cc66dd0d00d58d6628120f2c.zip
Fix incorrect phantom spawning entity (#9385)
-rw-r--r--patches/server/0247-Add-PhantomPreSpawnEvent.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/patches/server/0247-Add-PhantomPreSpawnEvent.patch b/patches/server/0247-Add-PhantomPreSpawnEvent.patch
index 5e0542c9d7..4e43264e12 100644
--- a/patches/server/0247-Add-PhantomPreSpawnEvent.patch
+++ b/patches/server/0247-Add-PhantomPreSpawnEvent.patch
@@ -67,7 +67,7 @@ index 61ba99d99cc4e7782450ee6aa8b6c87b1a42cb3a..a18e6296d1f50c53291d41192a100960
Phantom entityphantom = (Phantom) EntityType.PHANTOM.create(world);
if (entityphantom != null) {
-+ entityphantom.setSpawningEntity(entityphantom.getUUID()); // Paper
++ entityphantom.setSpawningEntity(entityplayer.getUUID()); // Paper
entityphantom.moveTo(blockposition1, 0.0F, 0.0F);
groupdataentity = entityphantom.finalizeSpawn(world, difficultydamagescaler, MobSpawnType.NATURAL, groupdataentity, (CompoundTag) null);
world.addFreshEntityWithPassengers(entityphantom, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NATURAL); // CraftBukkit