food threshold from 18 (9) to 16 (8)

master
Default 4 years ago
parent 6cdf10ddaa
commit bf1b03aff0
  1. 2
      src/main/java/com/benjocraeft/sharehealth/FoodRegeneration.java

@ -27,7 +27,7 @@ public class FoodRegeneration extends BukkitRunnable {
// is greater than or equal to 18 of 20 (90%) // is greater than or equal to 18 of 20 (90%)
//Here, we look for the average food level //Here, we look for the average food level
double currentHealth = Sharehealth.Instance.getHealthManager().getHealth(); double currentHealth = Sharehealth.Instance.getHealthManager().getHealth();
if (allFoodPoints / allPlayersCount >= 18 && currentHealth > 0 && currentHealth < 20){ if (allFoodPoints / allPlayersCount >= 16 && currentHealth > 0 && currentHealth < 20){
Sharehealth.Instance.onFoodRegeneration(); Sharehealth.Instance.onFoodRegeneration();
} }

Loading…
Cancel
Save