Fix mod not loading
This commit is contained in:
parent
29307cfc08
commit
fee6700074
4 changed files with 8 additions and 9 deletions
|
@ -100,7 +100,8 @@ jar {
|
||||||
manifest.attributes(
|
manifest.attributes(
|
||||||
"TweakClass": "org.spongepowered.asm.launch.MixinTweaker",
|
"TweakClass": "org.spongepowered.asm.launch.MixinTweaker",
|
||||||
"MixinConfigs": "mixins.vanillafix.json",
|
"MixinConfigs": "mixins.vanillafix.json",
|
||||||
"FMLCorePlugin": "org.dimdev.vanillafix.VanillaFixCoreMod"
|
"FMLCorePlugin": "org.dimdev.vanillafix.VanillaFixCoreMod",
|
||||||
|
"ForceLoadAsMod": "true"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package org.dimdev.vanillafix;
|
package org.dimdev.vanillafix;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.client.gui.*;
|
import net.minecraft.client.gui.*;
|
||||||
import net.minecraft.client.resources.I18n;
|
import net.minecraft.client.resources.I18n;
|
||||||
import net.minecraft.crash.CrashReport;
|
import net.minecraft.crash.CrashReport;
|
||||||
|
@ -11,7 +10,6 @@ import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.dimdev.ddutils.HasteUpload;
|
import org.dimdev.ddutils.HasteUpload;
|
||||||
import org.dimdev.vanillafix.mixins.client.IFixedMinecraft;
|
import org.dimdev.vanillafix.mixins.client.IFixedMinecraft;
|
||||||
import org.dimdev.vanillafix.mixins.client.MixinMinecraft;
|
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
@ -34,7 +32,7 @@ public class GuiCrashScreen extends GuiScreen {
|
||||||
public void initGui() {
|
public void initGui() {
|
||||||
buttonList.clear();
|
buttonList.clear();
|
||||||
buttonList.add(new GuiOptionButton(0, width / 2 - 155, height / 4 + 120 + 12, I18n.format("gui.toTitle")));
|
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
|
@Override
|
||||||
|
@ -51,7 +49,9 @@ public class GuiCrashScreen extends GuiScreen {
|
||||||
mc.displayGuiScreen(new GuiConfirmOpenLink(this, hasteLink, 31102009, false));
|
mc.displayGuiScreen(new GuiConfirmOpenLink(this, hasteLink, 31102009, false));
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
log.error(e);
|
log.error("Exception when crash menu button clicked:", e);
|
||||||
|
button.displayString = "[Failed]";
|
||||||
|
button.enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ public class VanillaFixCoreContainer extends DummyModContainer {
|
||||||
public VanillaFixCoreContainer() {
|
public VanillaFixCoreContainer() {
|
||||||
super(new ModMetadata());
|
super(new ModMetadata());
|
||||||
ModMetadata meta = getMetadata();
|
ModMetadata meta = getMetadata();
|
||||||
meta.modId = "cubicchunkscore";
|
meta.modId = "vanillafix";
|
||||||
meta.name = "VanillaFix";
|
meta.name = "VanillaFix";
|
||||||
meta.version = "${version}";
|
meta.version = "${version}";
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.riftSize.tooltip=Multiplier affecting how large rifts should be rendered, 1 being the default size.
|
||||||
dimdoors.graphics.riftJitter=Rift Jitter
|
dimdoors.graphics.riftJitter=Rift Jitter
|
||||||
dimdoors.graphics.riftJitter.tooltip=Multiplier affecting how much rifts should jitter, 1 being the default size.
|
dimdoors.graphics.riftJitter.tooltip=Multiplier affecting how much rifts should jitter, 1 being the default size.
|
||||||
|
|
||||||
vanillafix.gui.getLink=Get Link
|
|
||||||
|
|
Loading…
Reference in a new issue