diff options
author | feildmaster <admin@feildmaster.com> | 2012-11-27 12:14:53 -0600 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-11-27 12:14:53 -0600 |
commit | 0c16afd6e06742c47cae4141f694a9707aadac0b (patch) | |
tree | 28e4d8c5da222674bdfa183846e114c5cc709c75 /src/main/java/net/minecraft/server/EntityArrow.java | |
parent | 1040a81334594d6f6585849e5c6abefa6a725255 (diff) | |
download | craftbukkit-0c16afd6e06742c47cae4141f694a9707aadac0b.tar craftbukkit-0c16afd6e06742c47cae4141f694a9707aadac0b.tar.gz craftbukkit-0c16afd6e06742c47cae4141f694a9707aadac0b.tar.lz craftbukkit-0c16afd6e06742c47cae4141f694a9707aadac0b.tar.xz craftbukkit-0c16afd6e06742c47cae4141f694a9707aadac0b.zip |
Take into account if the shooter is a player before considering pvp mode for projectiles. Fixes BUKKIT-3058
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityArrow.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityArrow.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityArrow.java b/src/main/java/net/minecraft/server/EntityArrow.java index 8963e1c3..8b39b7ba 100644 --- a/src/main/java/net/minecraft/server/EntityArrow.java +++ b/src/main/java/net/minecraft/server/EntityArrow.java @@ -219,7 +219,7 @@ public class EntityArrow extends Entity implements IProjectile { // CraftBukkit start - moved damage call if (movingobjectposition.entity.damageEntity(damagesource, i1)) { - if (this.isBurning() && (!(movingobjectposition.entity instanceof EntityPlayer) || this.world.pvpMode)) { // CraftBukkit - abide by pvp setting if destination is a player. + if (this.isBurning() && (!(movingobjectposition.entity instanceof EntityPlayer) || !(this.shooter instanceof EntityPlayer) || this.world.pvpMode)) { // CraftBukkit - abide by pvp setting if destination is a player. EntityCombustByEntityEvent combustEvent = new EntityCombustByEntityEvent(this.getBukkitEntity(), entity.getBukkitEntity(), 5); org.bukkit.Bukkit.getPluginManager().callEvent(combustEvent); |