From 2a202c520e5c3336993ad271195c69e7c3e16872 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 27 Oct 2024 07:30:49 +1100 Subject: [PATCH] SPIGOT-7930: Fix spawning entities with SummonEntityEffect By: md_5 --- .../world/item/enchantment/effects/SummonEntityEffect.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/net/minecraft/world/item/enchantment/effects/SummonEntityEffect.patch b/paper-server/nms-patches/net/minecraft/world/item/enchantment/effects/SummonEntityEffect.patch index 60e640d240..7243a83ea8 100644 --- a/paper-server/nms-patches/net/minecraft/world/item/enchantment/effects/SummonEntityEffect.patch +++ b/paper-server/nms-patches/net/minecraft/world/item/enchantment/effects/SummonEntityEffect.patch @@ -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 }