Update for Support newest version of Ascend and fix potential issues related to the new version
This commit is contained in:
+2
-1
@@ -86,7 +86,8 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
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
|
// Iron's Spellbooks
|
||||||
compileOnly fg.deobf("io.redspace.ironsspellbooks:irons_spellbooks:${irons_spells_version}:api")
|
compileOnly fg.deobf("io.redspace.ironsspellbooks:irons_spellbooks:${irons_spells_version}:api")
|
||||||
|
|||||||
+1
-1
@@ -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.
|
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||||
mod_license=All Rights Reserved
|
mod_license=All Rights Reserved
|
||||||
# The mod version. See https://semver.org/
|
# 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.
|
# 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.
|
# This should match the base package used for the mod sources.
|
||||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
# 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.eventbus.api.SubscribeEvent;
|
||||||
import net.minecraftforge.fml.common.Mod;
|
import net.minecraftforge.fml.common.Mod;
|
||||||
import net.minecraftforge.fml.ModList;
|
import net.minecraftforge.fml.ModList;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.UUID;
|
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> lastCombatTick = new ConcurrentHashMap<>();
|
||||||
private static final Map<UUID, Integer> insanityDamageTicks = new ConcurrentHashMap<>();
|
private static final Map<UUID, Integer> insanityDamageTicks = new ConcurrentHashMap<>();
|
||||||
private static final Map<UUID, Integer> lowSanitySoundCooldown = new ConcurrentHashMap<>();
|
private static final Map<UUID, Integer> lowSanitySoundCooldown = new ConcurrentHashMap<>();
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(PlayerTickHandler.class);
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void onPlayerTick(TickEvent.PlayerTickEvent event) {
|
public static void onPlayerTick(TickEvent.PlayerTickEvent event) {
|
||||||
@@ -39,7 +42,7 @@ public class PlayerTickHandler {
|
|||||||
try {
|
try {
|
||||||
net.fretux.mindmotion.compat.AscendCompat.applyWillpowerBonuses(player);
|
net.fretux.mindmotion.compat.AscendCompat.applyWillpowerBonuses(player);
|
||||||
} catch (NoClassDefFoundError | Exception e) {
|
} 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;
|
int tick = player.tickCount;
|
||||||
|
|||||||
Reference in New Issue
Block a user