sentinels npe fix for ticket 436

This commit is contained in:
Joshua 2021-02-26 12:23:07 -06:00
parent d3ae688da4
commit 0174c7b601

View File

@ -19,7 +19,7 @@ public class PlayerDamageSkillHandler extends PassiveMythicMobSkillHandler {
@EventHandler
private void event(EntityDamageEvent e) {
if (e.getEntityType() == EntityType.PLAYER)
if (e.getEntityType() == EntityType.PLAYER && !e.getEntity().hasMetadata("NPC"))
castSkill(PlayerData.get((Player) e.getEntity()));
}
}