From 6401e1a7a18c0b28c409158ef4852ab6fe27e1c1 Mon Sep 17 00:00:00 2001 From: Chris Kearney <chris@kearneymail.com> Date: Mon, 15 Aug 2016 19:38:08 -0700 Subject: [PATCH] remove it when you kill the npc, why not? --- src/main/java/com/comandante/creeper/npc/Npc.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/comandante/creeper/npc/Npc.java b/src/main/java/com/comandante/creeper/npc/Npc.java index 76a630d4..a343305f 100644 --- a/src/main/java/com/comandante/creeper/npc/Npc.java +++ b/src/main/java/com/comandante/creeper/npc/Npc.java @@ -218,6 +218,7 @@ public class Npc extends CreeperEntity { private void killNpc(Player player) { isAlive.set(false); + player.removeActiveAlertStatus(this); Map<String, Double> damagePercents; Item corpse = new Item(getName() + " corpse", "a bloody corpse.", Arrays.asList("corpse", "c"), "a corpse lies on the ground.", UUID.randomUUID().toString(), Item.CORPSE_ID_RESERVED, 0, false, 120, Rarity.BASIC, 0, getLoot()); if (!player.isActive(CoolDownType.DEATH)) { -- GitLab