From ae333ded91b83fddf5c5695032bbda8099a092d8 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Wed, 8 Feb 2012 19:06:09 -0500 Subject: [PATCH] Made flaming arrows respect PVP settings. Fixes BUKKIT-541 --- src/main/java/net/minecraft/server/EntityArrow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityArrow.java b/src/main/java/net/minecraft/server/EntityArrow.java index 38eee3f5ba..6124c651e9 100644 --- a/src/main/java/net/minecraft/server/EntityArrow.java +++ b/src/main/java/net/minecraft/server/EntityArrow.java @@ -188,7 +188,7 @@ public class EntityArrow extends Entity { damagesource = DamageSource.arrow(this, this.shooter); } - if (this.isBurning()) { + if (this.isBurning() && this.world.pvpMode) { // CraftBukkit - abide by pvp setting. // CraftBukkit start EntityCombustByEntityEvent combustEvent = new EntityCombustByEntityEvent(this.getBukkitEntity(), entity.getBukkitEntity(), 5); Bukkit.getPluginManager().callEvent(combustEvent);