This check was unneeded, we already verify that the player is, in fact,

a player before this check is ever called.
This commit is contained in:
GJ 2013-02-22 13:40:36 -05:00
parent e85a0f6cfc
commit f9ad8ffe93

View File

@ -3,8 +3,6 @@ package com.gmail.nossr50.skills.acrobatics;
import org.bukkit.entity.Player;
import org.bukkit.event.entity.EntityDamageEvent;
import com.gmail.nossr50.util.Misc;
public abstract class AcrobaticsEventHandler {
protected AcrobaticsManager manager;
@ -53,7 +51,7 @@ public abstract class AcrobaticsEventHandler {
protected boolean isFatal(int damage) {
Player player = manager.getMcMMOPlayer().getPlayer();
if (Misc.isNPCEntity(player) || player.getHealth() - damage < 1) {
if (player.getHealth() - damage < 1) {
return true;
}