mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-20 14:08:57 +01:00
Made flaming arrows respect PVP settings. Fixes BUKKIT-541
This commit is contained in:
parent
879a87b1e0
commit
ae333ded91
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue