diff options
author | Andrew Ardill <andrew.ardill@gmail.com> | 2011-11-29 18:10:05 +1100 |
---|---|---|
committer | Andrew Ardill <andrew.ardill@gmail.com> | 2011-11-29 18:20:21 +1100 |
commit | 3da00ee41adf0ecfc31d5c330c281a8d5fe8a7b1 (patch) | |
tree | f9fff4196425ff33ceccd6c29a79df97ce253c91 /src/main/java/net/minecraft/server/EntityZombie.java | |
parent | 0c88f05c0da5e5f4a4dbd9be3ccbe2482e7b2f79 (diff) | |
download | craftbukkit-3da00ee41adf0ecfc31d5c330c281a8d5fe8a7b1.tar craftbukkit-3da00ee41adf0ecfc31d5c330c281a8d5fe8a7b1.tar.gz craftbukkit-3da00ee41adf0ecfc31d5c330c281a8d5fe8a7b1.tar.lz craftbukkit-3da00ee41adf0ecfc31d5c330c281a8d5fe8a7b1.tar.xz craftbukkit-3da00ee41adf0ecfc31d5c330c281a8d5fe8a7b1.zip |
Implementation of reworked EntityCombustEvents
Also includes some extra comments, and a refactoring of the
PaintingBreakByEntity event that is raised when lighting strikes a painting.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityZombie.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityZombie.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/EntityZombie.java b/src/main/java/net/minecraft/server/EntityZombie.java index 4a2f5136..6d78407f 100644 --- a/src/main/java/net/minecraft/server/EntityZombie.java +++ b/src/main/java/net/minecraft/server/EntityZombie.java @@ -25,11 +25,11 @@ public class EntityZombie extends EntityMonster { if (f > 0.5F && this.world.isChunkLoaded(MathHelper.floor(this.locX), MathHelper.floor(this.locY), MathHelper.floor(this.locZ)) && this.random.nextFloat() * 30.0F < (f - 0.4F) * 2.0F) { // CraftBukkit start - EntityCombustEvent event = new EntityCombustEvent(this.getBukkitEntity()); + EntityCombustEvent event = new EntityCombustEvent(this.getBukkitEntity(), 8); this.world.getServer().getPluginManager().callEvent(event); if (!event.isCancelled()) { - this.j(8); + this.j(event.getDuration()); } // CraftBukkit end } |