summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityZombie.patch
diff options
context:
space:
mode:
authorklugemonkey <klugemonkey@spawnchunk.com>2018-07-26 05:02:02 -0700
committermd_5 <git@md-5.net>2018-07-27 14:20:35 +1000
commit5d881a9264be3f1dc3eeb41e99821e19793328cf (patch)
tree01018ac46f708400502652b3ab081220273a86ec /nms-patches/EntityZombie.patch
parente70d864f0063ccc5939ead10db5cc1fb6991fdf8 (diff)
downloadcraftbukkit-5d881a9264be3f1dc3eeb41e99821e19793328cf.tar
craftbukkit-5d881a9264be3f1dc3eeb41e99821e19793328cf.tar.gz
craftbukkit-5d881a9264be3f1dc3eeb41e99821e19793328cf.tar.lz
craftbukkit-5d881a9264be3f1dc3eeb41e99821e19793328cf.tar.xz
craftbukkit-5d881a9264be3f1dc3eeb41e99821e19793328cf.zip
Add SpawnReason.DROWNED
Diffstat (limited to 'nms-patches/EntityZombie.patch')
-rw-r--r--nms-patches/EntityZombie.patch9
1 files changed, 9 insertions, 0 deletions
diff --git a/nms-patches/EntityZombie.patch b/nms-patches/EntityZombie.patch
index 4ae666cd..69dbfccd 100644
--- a/nms-patches/EntityZombie.patch
+++ b/nms-patches/EntityZombie.patch
@@ -30,6 +30,15 @@
}
}
+@@ -220,7 +234,7 @@
+ entityzombie.setCustomNameVisible(this.getCustomNameVisible());
+ }
+
+- this.world.addEntity(entityzombie);
++ this.world.addEntity(entityzombie, CreatureSpawnEvent.SpawnReason.DROWNED); // CraftBukkit - added spawn reason
+ this.die();
+ }
+ }
@@ -251,8 +265,8 @@
if (this.world.getType(new BlockPosition(i1, j1 - 1, k1)).q() && this.world.getLightLevel(new BlockPosition(i1, j1, k1)) < 10) {
entityzombie.setPosition((double) i1, (double) j1, (double) k1);