summaryrefslogtreecommitdiffstats
path: root/nms-patches/MobSpawnerPhantom.patch
blob: 4325b4580f3f02ae74732aa3d5eddfbd62f15c06 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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;