mirror of
https://github.com/LegacyModdingMC/UniMixins.git
synced 2026-10-26 14:34:00 +00:00
Move sanity check to individual modules
This commit is contained in:
1 parent
ff22e0a7b6
commit
af589d5f98
17 files changed
+243
-167
No files matched your search
@@ -10,11 +10,18 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
compileOnly('org.spongepowered:mixin:0.8.5-gasstation_7')
|
||||
shadow(project(":module-common")) {
|
||||
transitive = false
|
||||
}
|
||||
}
|
||||
|
||||
archivesBaseName = archivesBaseName.replace("-1.7.10", "-mixinbooterlegacy-1.7.10")
|
||||
|
||||
jar {
|
||||
apply plugin: "com.github.johnrengelman.shadow"
|
||||
|
||||
shadowJar {
|
||||
relocate 'io.github.legacymoddingmc.unimixins.common', 'io.github.legacymoddingmc.unimixins.mixinbooterlegacy.repackage.common'
|
||||
|
||||
manifest {
|
||||
attributes (
|
||||
'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package io.github.legacymoddingmc.unimixins.mixinbooterlegacy;
|
||||
|
||||
import io.github.legacymoddingmc.unimixins.common.sanitycheck.SanityCheckHelper;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
public class MixinBooterLegacyModule {
|
||||
public static void init() {
|
||||
if(SanityCheckHelper.isEnabled()) {
|
||||
SanityCheckHelper.warnIfJarPrefixesExist(Arrays.asList("mixinbooterlegacy-"));
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-1
@@ -1,13 +1,13 @@
|
||||
package io.github.tox1cozz.mixinbooterlegacy;
|
||||
|
||||
import com.google.common.util.concurrent.Runnables;
|
||||
import cpw.mods.fml.common.DummyModContainer;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
|
||||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;
|
||||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.Name;
|
||||
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.SortingIndex;
|
||||
import io.github.tox1cozz.mixinextras.MixinExtrasBootstrap;
|
||||
import io.github.legacymoddingmc.unimixins.mixinbooterlegacy.MixinBooterLegacyModule;
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
@@ -26,6 +26,7 @@ public final class MixinBooterLegacyPlugin implements IFMLLoadingPlugin {
|
||||
|
||||
static {
|
||||
LOGGER.info("MixinBootstrap Initializing...");
|
||||
MixinBooterLegacyModule.init();
|
||||
// Initialize MixinExtras
|
||||
MixinExtrasBootstrap.init();
|
||||
Mixins.addConfiguration("mixin.mixinbooterlegacy.json");
|
||||
|
||||
Reference in new issue
Block a user