diff --git a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java index 544fef8..7de3af4 100644 --- a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java +++ b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java @@ -7060,7 +7060,9 @@ implements Listener @EventHandler public void onPlayerOnFire(EntityCombustEvent e) { if (e.getEntity() instanceof LivingEntity) { - doFireAspectDamage(((LivingEntity)e.getEntity()), this.plugin); + if (!((LivingEntity)(e.getEntity())).hasPotionEffect(PotionEffectType.FIRE_RESISTANCE)) { + doFireAspectDamage(((LivingEntity)e.getEntity()), this.plugin); + } } if (e.getEntity().getType()==EntityType.PLAYER) { Player p = (Player)e.getEntity();