diff --git a/changelog b/changelog index 000d45b97..5d6ba26f0 100644 --- a/changelog +++ b/changelog @@ -52,3 +52,4 @@ * Fixed garbage loot pool sometimes producing "stone wires" * Fixed mining lasers targeting blocks with the "gas" material * Fixed gun looping sounds behaving weird when moving while firing +* Fixed an issue where weapon mods with the highest stat change priority would break the mod sorting, leading to inconsistent behavior diff --git a/src/main/java/com/hbm/items/weapon/sedna/mods/WeaponModBase.java b/src/main/java/com/hbm/items/weapon/sedna/mods/WeaponModBase.java index 1e5e9d9b6..dcba0bb12 100644 --- a/src/main/java/com/hbm/items/weapon/sedna/mods/WeaponModBase.java +++ b/src/main/java/com/hbm/items/weapon/sedna/mods/WeaponModBase.java @@ -2,7 +2,7 @@ package com.hbm.items.weapon.sedna.mods; public abstract class WeaponModBase implements IWeaponMod { - public static final int PRIORITY_SET = Integer.MAX_VALUE; + public static final int PRIORITY_SET = 1_000_000; // used to be MAX_VALUE, but that would break when doing Comparator math public static final int PRIORITY_MULTIPLICATIVE = 1_000; public static final int PRIORITY_ADDITIVE = 500; public static final int PRIORITY_MULT_FINAL = -1;