From f028d91eb0a7be837375251106a7a90d6281ebc1 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Wed, 23 Jan 2019 16:12:52 -0800 Subject: [PATCH] account for null entries in bleedtimer --- .../com/gmail/nossr50/runnables/skills/BleedTimerTask.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/skills/BleedTimerTask.java b/src/main/java/com/gmail/nossr50/runnables/skills/BleedTimerTask.java index c4b36e0fe..1ccae8530 100644 --- a/src/main/java/com/gmail/nossr50/runnables/skills/BleedTimerTask.java +++ b/src/main/java/com/gmail/nossr50/runnables/skills/BleedTimerTask.java @@ -69,7 +69,8 @@ public class BleedTimerTask extends BukkitRunnable { } private void lowerBleedDurationTicks(LivingEntity target) { - bleedList.put(target, bleedList.get(target) - 1); + if(bleedList.get(target) != null) + bleedList.put(target, bleedList.get(target) - 1); } /**