FIXED:
- A bug, where enchantment tick interval works incorrect.
This commit is contained in:
nulli0n 2024-12-19 20:38:02 +05:00
parent 01c497aaa4
commit d859b25f2f
9 changed files with 21 additions and 21 deletions

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>ExcellentEnchants</artifactId> <artifactId>ExcellentEnchants</artifactId>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<version>4.3.2</version> <version>4.3.3</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View File

@ -10,7 +10,7 @@ public class ConfigBridge {
private static boolean globalDistTradeEquipment; private static boolean globalDistTradeEquipment;
private static boolean globalDistRandomLoot; private static boolean globalDistRandomLoot;
public static int getEnchantsTickInterval() { public static long getEnchantsTickInterval() {
return enchantsTickInterval; return enchantsTickInterval;
} }

View File

@ -65,7 +65,7 @@ public class PotionEffects {
public int getEffectDuration(int level) { public int getEffectDuration(int level) {
if (this.isPermanent()) { 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) { if (this.getEffectType().getKey().equals(PotionEffectType.NIGHT_VISION.getKey()) && duration < 600) {
duration += 30 * 20; duration += 30 * 20;
} }

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>ExcellentEnchants</artifactId> <artifactId>ExcellentEnchants</artifactId>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<version>4.3.2</version> <version>4.3.3</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -89,31 +89,31 @@
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>API</artifactId> <artifactId>API</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>NMS</artifactId> <artifactId>NMS</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>MC_1_21_4</artifactId> <artifactId>MC_1_21_4</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>MC_1_21_3</artifactId> <artifactId>MC_1_21_3</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>MC_1_21</artifactId> <artifactId>MC_1_21</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>ExcellentEnchants</artifactId> <artifactId>ExcellentEnchants</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</parent> </parent>
<artifactId>MC_1_21</artifactId> <artifactId>MC_1_21</artifactId>
@ -28,13 +28,13 @@
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>API</artifactId> <artifactId>API</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>NMS</artifactId> <artifactId>NMS</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>ExcellentEnchants</artifactId> <artifactId>ExcellentEnchants</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</parent> </parent>
<artifactId>MC_1_21_3</artifactId> <artifactId>MC_1_21_3</artifactId>
@ -28,13 +28,13 @@
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>API</artifactId> <artifactId>API</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>NMS</artifactId> <artifactId>NMS</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -6,7 +6,7 @@
<parent> <parent>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>ExcellentEnchants</artifactId> <artifactId>ExcellentEnchants</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</parent> </parent>
<artifactId>MC_1_21_4</artifactId> <artifactId>MC_1_21_4</artifactId>
@ -28,13 +28,13 @@
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>API</artifactId> <artifactId>API</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>NMS</artifactId> <artifactId>NMS</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -5,7 +5,7 @@
<parent> <parent>
<artifactId>ExcellentEnchants</artifactId> <artifactId>ExcellentEnchants</artifactId>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<version>4.3.2</version> <version>4.3.3</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
@ -34,7 +34,7 @@
<dependency> <dependency>
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>API</artifactId> <artifactId>API</artifactId>
<version>4.3.2</version> <version>4.3.3</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -7,7 +7,7 @@
<groupId>su.nightexpress.excellentenchants</groupId> <groupId>su.nightexpress.excellentenchants</groupId>
<artifactId>ExcellentEnchants</artifactId> <artifactId>ExcellentEnchants</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>4.3.2</version> <version>4.3.3</version>
<modules> <modules>
<module>API</module> <module>API</module>
<module>Core</module> <module>Core</module>