mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 08:36:45 +01:00
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:
parent
e85a0f6cfc
commit
f9ad8ffe93
@ -3,8 +3,6 @@ package com.gmail.nossr50.skills.acrobatics;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.entity.EntityDamageEvent;
|
import org.bukkit.event.entity.EntityDamageEvent;
|
||||||
|
|
||||||
import com.gmail.nossr50.util.Misc;
|
|
||||||
|
|
||||||
public abstract class AcrobaticsEventHandler {
|
public abstract class AcrobaticsEventHandler {
|
||||||
protected AcrobaticsManager manager;
|
protected AcrobaticsManager manager;
|
||||||
|
|
||||||
@ -53,7 +51,7 @@ public abstract class AcrobaticsEventHandler {
|
|||||||
protected boolean isFatal(int damage) {
|
protected boolean isFatal(int damage) {
|
||||||
Player player = manager.getMcMMOPlayer().getPlayer();
|
Player player = manager.getMcMMOPlayer().getPlayer();
|
||||||
|
|
||||||
if (Misc.isNPCEntity(player) || player.getHealth() - damage < 1) {
|
if (player.getHealth() - damage < 1) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user