Update for Support newest version of Ascend and fix potential issues related to the new version

This commit is contained in:
2026-01-05 18:12:03 +01:00
parent a80220d9cf
commit 352c856fa4
3 changed files with 8 additions and 4 deletions
+3 -2
View File
@@ -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}")
+1 -1
View File
@@ -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
@@ -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<UUID, Integer> lastCombatTick = new ConcurrentHashMap<>();
private static final Map<UUID, Integer> insanityDamageTicks = new ConcurrentHashMap<>();
private static final Map<UUID, Integer> 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;