diff --git a/build.gradle b/build.gradle index a123b632a..daf9785c9 100644 --- a/build.gradle +++ b/build.gradle @@ -27,14 +27,22 @@ apply plugin: 'org.parchmentmc.librarian.forgegradle' apply plugin: 'org.spongepowered.mixin' apply from: 'https://raw.githubusercontent.com/RobertSkalko/ModResources/refs/heads/main/1.20.1/common.gradle' -apply from: 'https://raw.githubusercontent.com/RobertSkalko/ModResources/refs/heads/main/1.20.1/exile_lib_dep.gradle' apply from: 'https://raw.githubusercontent.com/RobertSkalko/ModResources/refs/heads/main/1.20.1/ide_runs.gradle' apply from: 'https://raw.githubusercontent.com/RobertSkalko/ModResources/refs/heads/main/1.20.1/meta.gradle' -apply from: 'https://raw.githubusercontent.com/RobertSkalko/ModResources/refs/heads/main/1.20.1/publishing.gradle' apply from: 'https://raw.githubusercontent.com/RobertSkalko/ModResources/refs/heads/main/1.20.1/mixin.gradle' -apply from: 'https://raw.githubusercontent.com/RobertSkalko/ModResources/refs/heads/main/1.20.1/dungeon_dep.gradle' -apply from: 'https://raw.githubusercontent.com/RobertSkalko/ModResources/refs/heads/main/1.20.1/mns_other_deps.gradle' +// Local-only dependency configuration for CI/Linux builds +repositories { + maven { url = 'https://maven.minecraftforge.net' } + mavenCentral() + maven { url = "https://maven.theillusivec4.top/" } + maven { url = "https://maven.kosmx.dev/" } + flatDir { dirs 'libs' } +} + +configurations.all { + resolutionStrategy.cacheChangingModulesFor 0, 'seconds' +} // --- COMMON BUILD SCRIPT END --- @@ -69,6 +77,9 @@ dependencies { implementation fg.deobf("dev.kosmx.player-anim:player-animation-lib-forge:${player_animator_version}") + // Expect Library of Exile jar to be placed in ./libs as Library_of_Exile-${minecraft_version}-${exile_library_version}.jar + implementation fg.deobf("blank:Library_of_Exile-${minecraft_version}:${exile_library_version}") + } publishMods { diff --git a/external/Library-of-Exile b/external/Library-of-Exile new file mode 160000 index 000000000..76adaf98c --- /dev/null +++ b/external/Library-of-Exile @@ -0,0 +1 @@ +Subproject commit 76adaf98c622db179cf505d62ee9faa703653252 diff --git a/src/main/java/com/robertx22/mine_and_slash/mmorpg/MMORPG.java b/src/main/java/com/robertx22/mine_and_slash/mmorpg/MMORPG.java index 4d069fc34..b675d3fe5 100644 --- a/src/main/java/com/robertx22/mine_and_slash/mmorpg/MMORPG.java +++ b/src/main/java/com/robertx22/mine_and_slash/mmorpg/MMORPG.java @@ -125,6 +125,14 @@ public static String formatBigNumber(float num) { public MMORPG() { + // Ensure modlist version mismatches don't block connections when protocol stays compatible + net.minecraftforge.fml.ModLoadingContext.get().registerExtensionPoint(net.minecraftforge.fml.IExtensionPoint.DisplayTest.class, + () -> new net.minecraftforge.fml.IExtensionPoint.DisplayTest( + () -> net.minecraftforge.network.NetworkConstants.IGNORESERVERONLY, + (incoming, isNetwork) -> true + ) + ); + SchemaTest.run(); final IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus();