Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
AbstractJarFileLocator -> AbstractJarFileModLocator
Browse files Browse the repository at this point in the history
This creates a hard dependency on certain FML versions. For now this is the quickest fix to get it working again. Need to roll back to implement IModLocator directly if we ever consider max-range compatibility.
Bump version to 0.2.4. When I get time to roll back to IModLocator directly, this will bump to 0.3.0

Fix GH-3
  • Loading branch information
3TUSK committed Dec 12, 2022
1 parent c30a2a2 commit 7b92f1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,11 @@ plugins {
id 'signing'
}

version = '0.2.3'
version = '0.2.4'
group = 'org.teacon'
archivesBaseName = 'RemoteSync-FML'

sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17

compileJava {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_17
}
java.toolchain.languageVersion = JavaLanguageVersion.of(17)

repositories {
mavenCentral()
Expand All @@ -32,11 +28,13 @@ repositories {
dependencies {
shadow group: 'org.bouncycastle', name: 'bcpg-jdk15on', version: '1.68'

implementation group: 'net.minecraftforge', name: 'forgespi', version: '4.0.9'
implementation group: 'net.minecraftforge', name: 'forgespi', version: '4.0.15'
implementation group: 'cpw.mods', name: 'modlauncher', version: '9.1.3'
implementation group: 'net.minecraftforge', name: 'fmlloader', version: '1.18.2-40.1.25'
implementation group: 'net.minecraftforge', name: 'fmlloader', version: '1.18.2-40.1.86'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.17.1'

testImplementation group: 'org.bouncycastle', name: 'bcpg-jdk15on', version: '1.68'
}

shadowJar {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/teacon/sync/SyncedModLocator.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import com.google.gson.JsonParseException;
import cpw.mods.modlauncher.Launcher;
import cpw.mods.modlauncher.api.IEnvironment;
import net.minecraftforge.fml.loading.moddiscovery.AbstractJarFileLocator;
import net.minecraftforge.fml.loading.moddiscovery.AbstractJarFileModLocator;
import net.minecraftforge.forgespi.Environment;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down Expand Up @@ -52,7 +52,7 @@
import java.util.function.Consumer;
import java.util.stream.Stream;

public final class SyncedModLocator extends AbstractJarFileLocator {
public final class SyncedModLocator extends AbstractJarFileModLocator {

private static final Logger LOGGER = LogManager.getLogger("RemoteSync");

Expand Down

0 comments on commit 7b92f1f

Please sign in to comment.