Paper/nms-patches/MobSpawnerPhantom.patch

12 lines
729 B
Diff
Raw Normal View History

--- a/net/minecraft/server/MobSpawnerPhantom.java
+++ b/net/minecraft/server/MobSpawnerPhantom.java
@@ -54,7 +54,7 @@
entityphantom.setPositionRotation(blockposition1, 0.0F, 0.0F);
groupdataentity = entityphantom.prepare(difficultydamagescaler, groupdataentity, (NBTTagCompound) null);
- world.addEntity(entityphantom);
+ world.addEntity(entityphantom, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.NATURAL); // CraftBukkit
}
i += k;