This commit is contained in:
Trixkz 2021-11-25 10:28:12 -05:00
parent 3d9d9a4b60
commit 8c196cb35f

View File

@ -77,6 +77,10 @@ public class MovementListener implements Listener {
if (!player.getActivePotionEffects().contains(PotionEffectType.REGENERATION)) {
player.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 1000000, 0));
}
} else {
if (player.getActivePotionEffects().contains(PotionEffectType.REGENERATION)) {
player.removePotionEffect(PotionEffectType.REGENERATION);
}
}
}