mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2024-11-22 11:16:17 +00:00
12 lines
963 B
Diff
12 lines
963 B
Diff
--- a/net/minecraft/world/level/levelgen/MobSpawnerPhantom.java
|
|
+++ b/net/minecraft/world/level/levelgen/MobSpawnerPhantom.java
|
|
@@ -74,7 +74,7 @@
|
|
if (entityphantom != null) {
|
|
entityphantom.moveTo(blockposition1, 0.0F, 0.0F);
|
|
groupdataentity = entityphantom.finalizeSpawn(worldserver, difficultydamagescaler, EntitySpawnReason.NATURAL, groupdataentity);
|
|
- worldserver.addFreshEntityWithPassengers(entityphantom);
|
|
+ worldserver.addFreshEntityWithPassengers(entityphantom, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NATURAL); // CraftBukkit
|
|
++i;
|
|
}
|
|
}
|