possible fix for mob damage

This commit is contained in:
Jesse Boyd
2018-06-21 07:48:45 +10:00
parent da5478f141
commit df6914fb1e
2 changed files with 4 additions and 1 deletions

View File

@ -2515,7 +2515,7 @@ public class PlayerEvents extends PlotListener implements Listener {
return false;
}
// player is null
return !(damager instanceof Arrow && !(victim instanceof Creature));
return (dArea != null && dArea.MOB_DAMAGE) || !(damager instanceof Arrow && !(victim instanceof Creature));
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)