mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-30 19:15:28 +02:00
Because it's not just Citizens that uses NPCs.
This commit is contained in:
@@ -53,7 +53,7 @@ public abstract class AcrobaticsEventHandler {
|
||||
* @return true if the damage is fatal, false otherwise
|
||||
*/
|
||||
protected boolean isFatal(int damage) {
|
||||
if (Misc.isCitizensNPC(player) || player.getHealth() - damage < 1) {
|
||||
if (Misc.isNPC(player) || player.getHealth() - damage < 1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@@ -22,7 +22,7 @@ public class AcrobaticsManager extends SkillManager {
|
||||
* @param event The event to check
|
||||
*/
|
||||
public void rollCheck(EntityDamageEvent event) {
|
||||
if (Misc.isCitizensNPC(player) || !Permissions.roll(player)) {
|
||||
if (Misc.isNPC(player) || !Permissions.roll(player)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ public class AcrobaticsManager extends SkillManager {
|
||||
* @param event The event to check
|
||||
*/
|
||||
public void dodgeCheck(EntityDamageEvent event) {
|
||||
if (Misc.isCitizensNPC(player) || !Permissions.dodge(player)) {
|
||||
if (Misc.isNPC(player) || !Permissions.dodge(player)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user