Merge pull request #3 from Fretuks/fix-mod-crash-without-irons-spellbooks

Guard Irons Spellbooks tempo regen access
This commit is contained in:
2026-01-22 09:13:31 +01:00
committed by GitHub
@@ -60,6 +60,8 @@ public final class IronsSpellbooksCompatMM {
}
public static void applyTempoToManaRegen(Player player, int tempo) {
if (!isLoaded()) return;
resolveOnce();
if (!available) return;
Attribute manaRegenAttr = getManaRegenAttribute();
if (manaRegenAttr == null) return;