SPIGOT-7930: Fix spawning entities with SummonEntityEffect
This commit is contained in:
parent
92d6ab6cfa
commit
abbf57bac9
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user