Skip to content

Commit

Permalink
Update to NeoForge 20.6.63-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed May 16, 2024
1 parent 701622c commit 79d6f25
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
org.gradle.jvmargs=-Xmx3G

versionMc=1.20.6
versionForge=20.6.18-beta
versionForge=20.6.63-beta
versionLoaderUpstream=0.15.10
versionYarn=1.20.6+build.1
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,19 @@
import cpw.mods.modlauncher.LaunchPluginHandler;
import cpw.mods.modlauncher.Launcher;
import cpw.mods.modlauncher.serviceapi.ILaunchPluginService;
import net.neoforged.neoforgespi.language.IModLanguageProvider;
import net.neoforged.fml.ModContainer;
import net.neoforged.fml.ModLoadingException;
import net.neoforged.fml.loading.BuiltInLanguageLoader;
import net.neoforged.neoforgespi.language.IModInfo;
import net.neoforged.neoforgespi.language.ModFileScanData;

import java.lang.reflect.Field;
import java.util.Map;
import java.util.function.Consumer;

/**
* Terribly ugly hack to bootstrap fml mods into fabric loader before modloading starts, in a way that can be loaded from JarJar.
*/
public class FabricLoaderHackyInjector implements IModLanguageProvider {
public class FabricLoaderHackyInjector extends BuiltInLanguageLoader {
public static final String NAME = "__fabric_loader_bootstrap";

public FabricLoaderHackyInjector() {
Expand All @@ -54,7 +56,7 @@ public String name() {
}

@Override
public Consumer<ModFileScanData> getFileVisitor() {
return data -> {};
public ModContainer loadMod(IModInfo info, ModFileScanData modFileScanResults, ModuleLayer layer) throws ModLoadingException {
throw new UnsupportedOperationException();
}
}

0 comments on commit 79d6f25

Please sign in to comment.