forked from squeek502/AppleCore
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update buildscript * exit if a mixin fails * exit code -99 for missing mixins * fix error
- Loading branch information
Showing
3 changed files
with
91 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package squeek.applecore.mixinplugin; | ||
|
||
import cpw.mods.fml.common.FMLCommonHandler; | ||
import net.minecraft.launchwrapper.Launch; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
|
@@ -63,7 +64,8 @@ public List<String> getMixins() { | |
LOG.info("Found " + mod.modName + "! Integrating now..."); | ||
} | ||
else { | ||
LOG.info("Could not find " + mod.modName + "! Skipping integration...."); | ||
LOG.error("Could not find " + mod.modName + "! Going to crash now"); | ||
This comment has been minimized.
Sorry, something went wrong. |
||
FMLCommonHandler.instance().exitJava(-99, false); | ||
} | ||
} | ||
|
||
|
@@ -81,7 +83,7 @@ private boolean loadJarOf(final TargetedMod mod) { | |
try { | ||
File jar = findJarOf(mod); | ||
if(jar == null) { | ||
LOG.info("Jar not found for " + mod); | ||
LOG.warn("Jar not found for " + mod); | ||
This comment has been minimized.
Sorry, something went wrong.
SinTh0r4s
Member
|
||
return false; | ||
} | ||
|
||
|
As below. Mixins into mods are optional and a missing mod is perfectly fine!