Skip to content

Commit

Permalink
Players not taking damage from ghasts
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 15, 2017
1 parent d95d86f commit 6ca17ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/com/wasteofplastic/askyblock/listeners/IslandGuard.java
Original file line number Diff line number Diff line change
Expand Up @@ -1027,10 +1027,9 @@ public void onEntityDamage(final EntityDamageByEntityEvent e) {
}
// Stop TNT damage if it is disallowed
if (!Settings.allowTNTDamage && (e.getDamager().getType().equals(EntityType.PRIMED_TNT)
|| e.getDamager().getType().equals(EntityType.FIREWORK)
|| e.getDamager().getType().equals(EntityType.FIREBALL))) {
|| e.getDamager().getType().equals(EntityType.FIREWORK))) {
if (DEBUG)
plugin.getLogger().info("DEBUG: cancelling firework or fireball damage");
plugin.getLogger().info("DEBUG: cancelling TNT or firework damage");
e.setCancelled(true);
return;
}
Expand Down

0 comments on commit 6ca17ee

Please sign in to comment.