13
0
geforkt von Mirrors/Paper

Made flaming arrows respect PVP settings. Fixes BUKKIT-541

Dieser Commit ist enthalten in:
EvilSeph 2012-02-08 19:06:09 -05:00
Ursprung 879a87b1e0
Commit ae333ded91

Datei anzeigen

@ -188,7 +188,7 @@ public class EntityArrow extends Entity {
damagesource = DamageSource.arrow(this, this.shooter); damagesource = DamageSource.arrow(this, this.shooter);
} }
if (this.isBurning()) { if (this.isBurning() && this.world.pvpMode) { // CraftBukkit - abide by pvp setting.
// CraftBukkit start // CraftBukkit start
EntityCombustByEntityEvent combustEvent = new EntityCombustByEntityEvent(this.getBukkitEntity(), entity.getBukkitEntity(), 5); EntityCombustByEntityEvent combustEvent = new EntityCombustByEntityEvent(this.getBukkitEntity(), entity.getBukkitEntity(), 5);
Bukkit.getPluginManager().callEvent(combustEvent); Bukkit.getPluginManager().callEvent(combustEvent);