Fix mod not loading

This commit is contained in:
Runemoro 2018-04-26 00:00:30 -04:00
parent 29307cfc08
commit fee6700074
4 changed files with 8 additions and 9 deletions

View file

@ -100,7 +100,8 @@ jar {
manifest.attributes(
"TweakClass": "org.spongepowered.asm.launch.MixinTweaker",
"MixinConfigs": "mixins.vanillafix.json",
"FMLCorePlugin": "org.dimdev.vanillafix.VanillaFixCoreMod"
"FMLCorePlugin": "org.dimdev.vanillafix.VanillaFixCoreMod",
"ForceLoadAsMod": "true"
)
}

View file

@ -1,6 +1,5 @@
package org.dimdev.vanillafix;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.*;
import net.minecraft.client.resources.I18n;
import net.minecraft.crash.CrashReport;
@ -11,7 +10,6 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.dimdev.ddutils.HasteUpload;
import org.dimdev.vanillafix.mixins.client.IFixedMinecraft;
import org.dimdev.vanillafix.mixins.client.MixinMinecraft;
import java.io.File;
import java.net.URI;
@ -34,7 +32,7 @@ public class GuiCrashScreen extends GuiScreen {
public void initGui() {
buttonList.clear();
buttonList.add(new GuiOptionButton(0, width / 2 - 155, height / 4 + 120 + 12, I18n.format("gui.toTitle")));
buttonList.add(new GuiOptionButton(1, width / 2 - 155 + 160, height / 4 + 120 + 12, I18n.format("vanillafix.gui.getLink")));
buttonList.add(new GuiOptionButton(1, width / 2 - 155 + 160, height / 4 + 120 + 12, "Get Link")); // TODO: localize
}
@Override
@ -51,7 +49,9 @@ public class GuiCrashScreen extends GuiScreen {
mc.displayGuiScreen(new GuiConfirmOpenLink(this, hasteLink, 31102009, false));
}
} catch (Throwable e) {
log.error(e);
log.error("Exception when crash menu button clicked:", e);
button.displayString = "[Failed]";
button.enabled = false;
}
}

View file

@ -12,7 +12,7 @@ public class VanillaFixCoreContainer extends DummyModContainer {
public VanillaFixCoreContainer() {
super(new ModMetadata());
ModMetadata meta = getMetadata();
meta.modId = "cubicchunkscore";
meta.modId = "vanillafix";
meta.name = "VanillaFix";
meta.version = "${version}";
}
@ -21,4 +21,4 @@ public class VanillaFixCoreContainer extends DummyModContainer {
public List<ArtifactVersion> getDependencies() {
return Collections.emptyList();
}
}
}

View file

@ -201,5 +201,3 @@ dimdoors.graphics.riftSize=Rift Size
dimdoors.graphics.riftSize.tooltip=Multiplier affecting how large rifts should be rendered, 1 being the default size.
dimdoors.graphics.riftJitter=Rift Jitter
dimdoors.graphics.riftJitter.tooltip=Multiplier affecting how much rifts should jitter, 1 being the default size.
vanillafix.gui.getLink=Get Link