Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---

Expand Down Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions external/Library-of-Exile
Submodule Library-of-Exile added at 76adaf
8 changes: 8 additions & 0 deletions src/main/java/com/robertx22/mine_and_slash/mmorpg/MMORPG.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down