mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 15:02:10 +00:00
Minor fixes
This commit is contained in:
1 parent
9bad1f5c97
commit
bc42196601
7 files changed
+28
-18
No files matched your search
@@ -91,9 +91,8 @@ public class MixinLaunchAgentFML extends MixinLaunchAgentAbstract {
|
||||
|
||||
return this.injectCorePlugin();
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -29,6 +29,9 @@ import java.net.URI;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
import net.minecraft.launchwrapper.LaunchClassLoader;
|
||||
|
||||
@@ -46,6 +49,8 @@ public class MixinTweakContainer {
|
||||
MixinTweakContainer.agentClasses.add("org.spongepowered.asm.launch.MixinLaunchAgentDefault");
|
||||
}
|
||||
|
||||
private final Logger logger = LogManager.getLogger("mixin");
|
||||
|
||||
private final URI uri;
|
||||
|
||||
private final List<IMixinLaunchAgent> agents = new ArrayList<IMixinLaunchAgent>();
|
||||
@@ -61,7 +66,7 @@ public class MixinTweakContainer {
|
||||
IMixinLaunchAgent agent = ctor.newInstance(uri);
|
||||
this.agents.add(agent);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
this.logger.catching(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ public class MixinEnvironment implements ITokenProvider {
|
||||
return name;
|
||||
}
|
||||
|
||||
name = this.getSideName("com.mumfrey.liteloader.core.LiteLoader", "getEnvironmentType");
|
||||
name = this.getSideName("com.mumfrey.liteloader.launch.LiteLoaderTweaker", "getEnvironmentType");
|
||||
if (name != null) {
|
||||
return name;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user