From 907d389b43597929cc5f8913f86c802effd59fd7 Mon Sep 17 00:00:00 2001 From: Boblet Date: Fri, 17 Oct 2025 15:18:11 +0200 Subject: [PATCH] ey jimmy, gimme a weapon mod with NOTHIN' nuttin'?? --- changelog | 1 + .../java/com/hbm/items/weapon/sedna/mods/WeaponModBase.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;