account for null entries in bleedtimer

This commit is contained in:
nossr50 2019-01-23 16:12:52 -08:00
parent c46b7ed3bc
commit f028d91eb0

View File

@ -69,6 +69,7 @@ public class BleedTimerTask extends BukkitRunnable {
} }
private void lowerBleedDurationTicks(LivingEntity target) { private void lowerBleedDurationTicks(LivingEntity target) {
if(bleedList.get(target) != null)
bleedList.put(target, bleedList.get(target) - 1); bleedList.put(target, bleedList.get(target) - 1);
} }