Remove ModCore
That was never actually finished and we do not need to keep it around anymore. Whether we add its successor once that is ready for production use remains to be seen.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package com.replaymod.core.tweaker;
|
||||
|
||||
import com.replaymod.extras.modcore.ModCoreInstaller;
|
||||
import net.minecraft.launchwrapper.ITweaker;
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
import net.minecraft.launchwrapper.LaunchClassLoader;
|
||||
@@ -74,13 +73,6 @@ public class ReplayModTweaker implements ITweaker {
|
||||
//#else
|
||||
//$$ platform.addContainer(uri);
|
||||
//#endif
|
||||
|
||||
//#if MC>=11202 && MC<=11202
|
||||
initModCore("1.12.2");
|
||||
//#endif
|
||||
//#if MC>=10809 && MC<=10809
|
||||
//$$ initModCore("1.8.9");
|
||||
//#endif
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -92,29 +84,4 @@ public class ReplayModTweaker implements ITweaker {
|
||||
public String[] getLaunchArguments() {
|
||||
return new String[0];
|
||||
}
|
||||
|
||||
private void initModCore(String mcVer) {
|
||||
try {
|
||||
if (System.getProperty("REPLAYMOD_SKIP_MODCORE", "false").equalsIgnoreCase("true")) {
|
||||
System.out.println("ReplayMod not initializing ModCore because REPLAYMOD_SKIP_MODCORE is true.");
|
||||
return;
|
||||
}
|
||||
|
||||
if ((Boolean) Launch.blackboard.get("fml.deobfuscatedEnvironment")) {
|
||||
System.out.println("ReplayMod not initializing ModCore because we're in a development environment.");
|
||||
return;
|
||||
}
|
||||
|
||||
int result = ModCoreInstaller.initialize(Launch.minecraftHome, mcVer + "_forge");
|
||||
if (result != -2) { // Don't even bother logging the result if there's no ModCore for this version.
|
||||
System.out.println("ReplayMod ModCore init result: " + result);
|
||||
}
|
||||
if (ModCoreInstaller.isErrored()) {
|
||||
System.err.println(ModCoreInstaller.getError());
|
||||
}
|
||||
} catch (Throwable t) {
|
||||
System.err.println("ReplayMod caught error during ModCore init:");
|
||||
t.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user