mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2024-11-23 12:15:25 +01:00
3.6.0: Fix jar output
This commit is contained in:
parent
856db36d81
commit
47b3f2f06b
@ -90,12 +90,12 @@ processResources {
|
||||
}
|
||||
|
||||
mixin {
|
||||
add sourceSets.main, "mixins.${maven_name}-mc18.refmap.json"
|
||||
add sourceSets.main, "mixins.${maven_name}.refmap.json"
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest.attributes(
|
||||
"MixinConfigs": "mixins.${maven_name}-mc18.json",
|
||||
"MixinConfigs": "mixins.${maven_name}.json",
|
||||
"tweakClass": "org.spongepowered.asm.launch.MixinTweaker",
|
||||
"TweakOrder": 0,
|
||||
"FMLCorePluginContainsFMLMod": "de.florianmichael.viaforge.mixin.MixinLoader"
|
||||
|
@ -30,9 +30,9 @@ import java.io.File;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
@Mod(modid = "viaforge")
|
||||
public class ViaForge18 implements VFPlatform {
|
||||
public class ViaForge189 implements VFPlatform {
|
||||
|
||||
public static final ViaForge18 PLATFORM = new ViaForge18();
|
||||
public static final ViaForge189 PLATFORM = new ViaForge189();
|
||||
|
||||
@Override
|
||||
public int getGameVersion() {
|
@ -29,7 +29,7 @@ public class MixinLoader implements IFMLLoadingPlugin {
|
||||
|
||||
public MixinLoader() {
|
||||
MixinBootstrap.init();
|
||||
Mixins.addConfiguration("mixins.viaforge-mc18.json");
|
||||
Mixins.addConfiguration("mixins.viaforge-mc189.json");
|
||||
MixinEnvironment.getDefaultEnvironment().setSide(MixinEnvironment.Side.CLIENT);
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
package de.florianmichael.viaforge.mixin.impl;
|
||||
|
||||
import com.viaversion.viaversion.util.Pair;
|
||||
import de.florianmichael.viaforge.ViaForge18;
|
||||
import de.florianmichael.viaforge.ViaForge189;
|
||||
import de.florianmichael.viaforge.common.ViaForgeCommon;
|
||||
import de.florianmichael.viaforge.common.platform.ViaForgeConfig;
|
||||
import de.florianmichael.viaforge.gui.GuiProtocolSelector;
|
||||
@ -34,7 +34,7 @@ public class MixinGuiMainMenu extends GuiScreen {
|
||||
|
||||
@Inject(method = "initGui", at = @At("RETURN"))
|
||||
public void hookViaForgeButton(CallbackInfo ci) {
|
||||
ViaForgeCommon.init(ViaForge18.PLATFORM);
|
||||
ViaForgeCommon.init(ViaForge189.PLATFORM);
|
||||
|
||||
final ViaForgeConfig config = ViaForgeCommon.getManager().getConfig();
|
||||
if (config.isShowMainMenuButton()) {
|
||||
|
@ -3,7 +3,7 @@
|
||||
"minVersion": "0.7.5",
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"package": "de.florianmichael.viaforge.mixin.impl",
|
||||
"refmap": "mixins.viaforge-mc18.refmap.json",
|
||||
"refmap": "mixins.viaforge-mc189.refmap.json",
|
||||
"client": [
|
||||
"MixinGuiMainMenu",
|
||||
"MixinGuiMultiplayer",
|
Loading…
Reference in New Issue
Block a user