SPIGOT-7930: Fix spawning entities with SummonEntityEffect

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2024-10-27 07:30:49 +11:00
parent 762b4f15ca
commit 2a202c520e

View File

@@ -29,7 +29,7 @@
+ // CraftBukkit start
+ worldserver.strikeLightning(entity1, (enchantediteminuse.itemStack().getItem() == Items.TRIDENT) ? LightningStrikeEvent.Cause.TRIDENT : LightningStrikeEvent.Cause.ENCHANTMENT);
+ } else {
+ worldserver.addFreshEntityWithPassengers(entity, CreatureSpawnEvent.SpawnReason.ENCHANTMENT);
+ worldserver.addFreshEntityWithPassengers(entity1, CreatureSpawnEvent.SpawnReason.ENCHANTMENT);
+ // CraftBukkit end
}