t
This commit is contained in:
parent
3d9d9a4b60
commit
8c196cb35f
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user