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,7 +69,8 @@ public class BleedTimerTask extends BukkitRunnable {
} }
private void lowerBleedDurationTicks(LivingEntity target) { private void lowerBleedDurationTicks(LivingEntity target) {
bleedList.put(target, bleedList.get(target) - 1); if(bleedList.get(target) != null)
bleedList.put(target, bleedList.get(target) - 1);
} }
/** /**