From c78cafd40221202e74429062d37f8a727c4de3eb Mon Sep 17 00:00:00 2001 From: Jules Date: Tue, 16 Apr 2024 23:05:45 -0700 Subject: [PATCH] Fixed permanent regen potion effect not working when at level 1 --- .../src/main/java/net/Indyuce/mmoitems/util/MMOUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/util/MMOUtils.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/util/MMOUtils.java index b4740292..cb4403bd 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/util/MMOUtils.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/util/MMOUtils.java @@ -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