Fixed permanent regen potion effect not working when at level 1

This commit is contained in:
Jules 2024-04-16 23:05:45 -07:00
parent 575de786b2
commit c78cafd402

View File

@ -265,7 +265,7 @@ public class MMOUtils {
* "permanent" potion effects, depending on the potion effect type
*/
public static int getEffectDuration(PotionEffectType type) {
return type.equals(PotionEffectType.NIGHT_VISION) || type.equals(PotionEffectType.CONFUSION) ? 260 : type.equals(PotionEffectType.BLINDNESS) ? 140 : 80;
return type.equals(PotionEffectType.NIGHT_VISION) || type.equals(PotionEffectType.CONFUSION) ? 260 : type.equals(PotionEffectType.BLINDNESS) ? 140 : 100;
}
@NotNull