From 352c856fa4009cee67227ef3160f8ae6ef413e9b Mon Sep 17 00:00:00 2001 From: fretuks Date: Mon, 5 Jan 2026 18:12:03 +0100 Subject: [PATCH] Update for Support newest version of Ascend and fix potential issues related to the new version --- build.gradle | 5 +++-- gradle.properties | 2 +- .../java/net/fretux/mindmotion/event/PlayerTickHandler.java | 5 ++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 73c30fc..29494be 100644 --- a/build.gradle +++ b/build.gradle @@ -86,8 +86,9 @@ repositories { dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" - compileOnly fg.deobf("net.fretux.ascend:Ascend:2.0.3") - + compileOnly fg.deobf("net.fretux.ascend:Ascend:2.1.1") + implementation fg.deobf("net.fretux.ascend:Ascend:2.1.1") + // Iron's Spellbooks compileOnly fg.deobf("io.redspace.ironsspellbooks:irons_spellbooks:${irons_spells_version}:api") implementation fg.deobf("io.redspace.ironsspellbooks:irons_spellbooks:${irons_spells_version}") diff --git a/gradle.properties b/gradle.properties index 445da49..8ca0560 100644 --- a/gradle.properties +++ b/gradle.properties @@ -52,7 +52,7 @@ mod_name=Mind & Motion # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=All Rights Reserved # The mod version. See https://semver.org/ -mod_version=1.2.1 +mod_version=1.2.2 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/net/fretux/mindmotion/event/PlayerTickHandler.java b/src/main/java/net/fretux/mindmotion/event/PlayerTickHandler.java index 20af9ef..5341278 100644 --- a/src/main/java/net/fretux/mindmotion/event/PlayerTickHandler.java +++ b/src/main/java/net/fretux/mindmotion/event/PlayerTickHandler.java @@ -14,6 +14,8 @@ import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.ModList; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import java.util.Map; import java.util.UUID; @@ -29,6 +31,7 @@ public class PlayerTickHandler { private static final Map lastCombatTick = new ConcurrentHashMap<>(); private static final Map insanityDamageTicks = new ConcurrentHashMap<>(); private static final Map lowSanitySoundCooldown = new ConcurrentHashMap<>(); + private static final Logger log = LoggerFactory.getLogger(PlayerTickHandler.class); @SubscribeEvent public static void onPlayerTick(TickEvent.PlayerTickEvent event) { @@ -39,7 +42,7 @@ public class PlayerTickHandler { try { net.fretux.mindmotion.compat.AscendCompat.applyWillpowerBonuses(player); } catch (NoClassDefFoundError | Exception e) { - // Skip Ascend integration if the classes are missing or fail to load. + log.error(String.valueOf(e)); } } int tick = player.tickCount;