Fixed a bug that prevented banshees from dying

This commit is contained in:
ceikry
2021-07-11 09:50:03 -05:00
parent 6207846cc6
commit 71f9473b4e
@@ -81,8 +81,8 @@ public final class BansheeNPC extends AbstractNPC {
} }
@Override @Override
public void checkImpact(BattleState state) { public void onImpact(Entity entity, BattleState state) {
super.checkImpact(state); super.onImpact(entity, state);
if (state.getAttacker() instanceof Player) { if (state.getAttacker() instanceof Player) {
final Player player = (Player) state.getAttacker(); final Player player = (Player) state.getAttacker();
if (!hasEarMuffs(player)) { if (!hasEarMuffs(player)) {