13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/MobSpawnerPhantom.patch
CraftBukkit/Spigot b69070bbe4 Use SpawnReason.NATURAL for Phantom spawning
By: klugemonkey <klugemonkey@spawnchunk.com>
2018-07-27 19:33:36 +10:00

12 Zeilen
729 B
Diff

--- 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;