summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2013-09-10 21:22:19 -0400
committerEvilSeph <evilseph@gmail.com>2013-09-10 22:24:00 -0400
commit6d700c3320676d2cfe6cf787d3411870da9c067f (patch)
tree4a6e1796e9b41cf72d575171b1f66d9f843dd7ca /src
parentb8feaf059ca07765be83f8092219d1e9cb58e2fe (diff)
downloadcraftbukkit-6d700c3320676d2cfe6cf787d3411870da9c067f.tar
craftbukkit-6d700c3320676d2cfe6cf787d3411870da9c067f.tar.gz
craftbukkit-6d700c3320676d2cfe6cf787d3411870da9c067f.tar.lz
craftbukkit-6d700c3320676d2cfe6cf787d3411870da9c067f.tar.xz
craftbukkit-6d700c3320676d2cfe6cf787d3411870da9c067f.zip
Use correct spawn reason for Zombie reinforcements. Fixes BUKKIT-4744
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/EntityZombie.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityZombie.java b/src/main/java/net/minecraft/server/EntityZombie.java
index 1bded634..3f506c7e 100644
--- a/src/main/java/net/minecraft/server/EntityZombie.java
+++ b/src/main/java/net/minecraft/server/EntityZombie.java
@@ -151,7 +151,7 @@ public class EntityZombie extends EntityMonster {
if (this.world.w(i1, j1 - 1, k1) && this.world.getLightLevel(i1, j1, k1) < 10) {
entityzombie.setPosition((double) i1, (double) j1, (double) k1);
if (this.world.b(entityzombie.boundingBox) && this.world.getCubes(entityzombie, entityzombie.boundingBox).isEmpty() && !this.world.containsLiquid(entityzombie.boundingBox)) {
- this.world.addEntity(entityzombie);
+ this.world.addEntity(entityzombie, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.REINFORCEMENTS);
entityzombie.setGoalTarget(entityliving);
entityzombie.a((GroupDataEntity) null);
this.getAttributeInstance(bp).a(new AttributeModifier("Zombie reinforcement caller charge", -0.05000000074505806D, 0));