From d859b25f2f6912286921294dff0374ef98429f76 Mon Sep 17 00:00:00 2001 From: nulli0n Date: Thu, 19 Dec 2024 20:38:02 +0500 Subject: [PATCH] v4.3.3 FIXED: - A bug, where enchantment tick interval works incorrect. --- API/pom.xml | 2 +- .../excellentenchants/api/ConfigBridge.java | 2 +- .../api/enchantment/meta/PotionEffects.java | 2 +- Core/pom.xml | 12 ++++++------ MC_1_21/pom.xml | 6 +++--- MC_1_21_3/pom.xml | 6 +++--- MC_1_21_4/pom.xml | 6 +++--- NMS/pom.xml | 4 ++-- pom.xml | 2 +- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/API/pom.xml b/API/pom.xml index dff89c9..6278724 100644 --- a/API/pom.xml +++ b/API/pom.xml @@ -5,7 +5,7 @@ ExcellentEnchants su.nightexpress.excellentenchants - 4.3.2 + 4.3.3 4.0.0 diff --git a/API/src/main/java/su/nightexpress/excellentenchants/api/ConfigBridge.java b/API/src/main/java/su/nightexpress/excellentenchants/api/ConfigBridge.java index 666920c..5e01aff 100644 --- a/API/src/main/java/su/nightexpress/excellentenchants/api/ConfigBridge.java +++ b/API/src/main/java/su/nightexpress/excellentenchants/api/ConfigBridge.java @@ -10,7 +10,7 @@ public class ConfigBridge { private static boolean globalDistTradeEquipment; private static boolean globalDistRandomLoot; - public static int getEnchantsTickInterval() { + public static long getEnchantsTickInterval() { return enchantsTickInterval; } diff --git a/API/src/main/java/su/nightexpress/excellentenchants/api/enchantment/meta/PotionEffects.java b/API/src/main/java/su/nightexpress/excellentenchants/api/enchantment/meta/PotionEffects.java index aef8e0f..2f985b6 100644 --- a/API/src/main/java/su/nightexpress/excellentenchants/api/enchantment/meta/PotionEffects.java +++ b/API/src/main/java/su/nightexpress/excellentenchants/api/enchantment/meta/PotionEffects.java @@ -65,7 +65,7 @@ public class PotionEffects { public int getEffectDuration(int level) { if (this.isPermanent()) { - int duration = ConfigBridge.getEnchantsTickInterval() * 2; + int duration = (int) (ConfigBridge.getEnchantsTickInterval() * 2); if (this.getEffectType().getKey().equals(PotionEffectType.NIGHT_VISION.getKey()) && duration < 600) { duration += 30 * 20; } diff --git a/Core/pom.xml b/Core/pom.xml index 4ecb91d..f98ba08 100644 --- a/Core/pom.xml +++ b/Core/pom.xml @@ -5,7 +5,7 @@ ExcellentEnchants su.nightexpress.excellentenchants - 4.3.2 + 4.3.3 4.0.0 @@ -89,31 +89,31 @@ su.nightexpress.excellentenchants API - 4.3.2 + 4.3.3 su.nightexpress.excellentenchants NMS - 4.3.2 + 4.3.3 su.nightexpress.excellentenchants MC_1_21_4 - 4.3.2 + 4.3.3 su.nightexpress.excellentenchants MC_1_21_3 - 4.3.2 + 4.3.3 su.nightexpress.excellentenchants MC_1_21 - 4.3.2 + 4.3.3 diff --git a/MC_1_21/pom.xml b/MC_1_21/pom.xml index d188788..ec64cd8 100644 --- a/MC_1_21/pom.xml +++ b/MC_1_21/pom.xml @@ -6,7 +6,7 @@ su.nightexpress.excellentenchants ExcellentEnchants - 4.3.2 + 4.3.3 MC_1_21 @@ -28,13 +28,13 @@ su.nightexpress.excellentenchants API - 4.3.2 + 4.3.3 su.nightexpress.excellentenchants NMS - 4.3.2 + 4.3.3 diff --git a/MC_1_21_3/pom.xml b/MC_1_21_3/pom.xml index 3a7ac39..bb4fb83 100644 --- a/MC_1_21_3/pom.xml +++ b/MC_1_21_3/pom.xml @@ -6,7 +6,7 @@ su.nightexpress.excellentenchants ExcellentEnchants - 4.3.2 + 4.3.3 MC_1_21_3 @@ -28,13 +28,13 @@ su.nightexpress.excellentenchants API - 4.3.2 + 4.3.3 su.nightexpress.excellentenchants NMS - 4.3.2 + 4.3.3 diff --git a/MC_1_21_4/pom.xml b/MC_1_21_4/pom.xml index aaccf0d..78a468b 100644 --- a/MC_1_21_4/pom.xml +++ b/MC_1_21_4/pom.xml @@ -6,7 +6,7 @@ su.nightexpress.excellentenchants ExcellentEnchants - 4.3.2 + 4.3.3 MC_1_21_4 @@ -28,13 +28,13 @@ su.nightexpress.excellentenchants API - 4.3.2 + 4.3.3 su.nightexpress.excellentenchants NMS - 4.3.2 + 4.3.3 diff --git a/NMS/pom.xml b/NMS/pom.xml index ae50235..4fb789c 100644 --- a/NMS/pom.xml +++ b/NMS/pom.xml @@ -5,7 +5,7 @@ ExcellentEnchants su.nightexpress.excellentenchants - 4.3.2 + 4.3.3 4.0.0 @@ -34,7 +34,7 @@ su.nightexpress.excellentenchants API - 4.3.2 + 4.3.3 diff --git a/pom.xml b/pom.xml index b181ffc..db6c97e 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ su.nightexpress.excellentenchants ExcellentEnchants pom - 4.3.2 + 4.3.3 API Core