summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authorklugemonkey <klugemonkey@spawnchunk.com>2018-07-27 19:33:36 +1000
committermd_5 <git@md-5.net>2018-07-27 19:33:42 +1000
commit4b00823222b633f1776cdc12da55b2e0f88371e2 (patch)
tree1ec50e260e62c6bea9867b2a906b8671504019dc /nms-patches
parent3d7f2f07d52957611eff626059beb1bbe36bea72 (diff)
downloadcraftbukkit-4b00823222b633f1776cdc12da55b2e0f88371e2.tar
craftbukkit-4b00823222b633f1776cdc12da55b2e0f88371e2.tar.gz
craftbukkit-4b00823222b633f1776cdc12da55b2e0f88371e2.tar.lz
craftbukkit-4b00823222b633f1776cdc12da55b2e0f88371e2.tar.xz
craftbukkit-4b00823222b633f1776cdc12da55b2e0f88371e2.zip
Use SpawnReason.NATURAL for Phantom spawning
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/MobSpawnerPhantom.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/nms-patches/MobSpawnerPhantom.patch b/nms-patches/MobSpawnerPhantom.patch
new file mode 100644
index 00000000..4325b458
--- /dev/null
+++ b/nms-patches/MobSpawnerPhantom.patch
@@ -0,0 +1,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;