Skip to content

Commit

Permalink
1.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfudge committed Dec 16, 2022
1 parent 9994123 commit 613f639
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import net.minecraft.client.gui.screen.TitleScreen;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;
import net.minecraft.util.crash.CrashReport;

@Environment(EnvType.CLIENT)
Expand All @@ -26,8 +25,12 @@ public CrashScreen(CrashReport report) {
@Override
public void init() {
super.init();
ButtonWidget mainMenuButton = new ButtonWidget(width / 2 - 155, height / 4 + 120 + 12, 150, 20,NecLocalization.translatedText("gui.toTitle"),
button -> MinecraftClient.getInstance().setScreen(new TitleScreen()));
ButtonWidget mainMenuButton = ButtonWidget.builder(
NecLocalization.translatedText("gui.toTitle"),
button -> MinecraftClient.getInstance().setScreen(new TitleScreen())
)
.dimensions(width / 2 - 155, height / 4 + 120 + 12, 150, 20)
.build();

if (NecConfig.instance().disableReturnToMainMenu) {
mainMenuButton.active = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import net.fabricmc.api.Environment;
import net.minecraft.client.gui.widget.ButtonWidget;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;
import net.minecraft.util.crash.CrashReport;

@Environment(EnvType.CLIENT)
Expand All @@ -27,12 +26,12 @@ public InitErrorScreen(CrashReport report) {
public void init() {
super.init();

ButtonWidget exitButton = new ButtonWidget(width / 2 - 155, height / 4 + 120 + 12, 150, 20, NecLocalization.translatedText("menu.quit"),
ButtonWidget exitButton = ButtonWidget.builder(NecLocalization.translatedText("menu.quit"),
button -> {
// Prevent the game from freaking out when we try to close it
NecConfig.instance().forceCrashScreen = false;
System.exit(-1);
});
}).dimensions(width / 2 - 155, height / 4 + 120 + 12, 150, 20).build();

addDrawableChild(exitButton);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,15 @@ public void init() {
widgets = new ArrayList<>();

addDrawableChild(
new ButtonWidget(width / 2 - 155 + 160, height / 4 + 132 + 12, 150, 20,
NecLocalization.translatedText("notenoughcrashes.gui.getLink"),
this::handleLegacyLinkClick)
ButtonWidget.builder(NecLocalization.translatedText("notenoughcrashes.gui.getLink"), this::handleLegacyLinkClick)
.dimensions(width / 2 - 155 + 160, height / 4 + 132 + 12, 150, 20)
.build()
);

addDrawableChild(
new ButtonWidget(width / 2 - 155 + 160, height / 4 + 108 + 12, 150, 20, uploadToCrashyText, this::handleCrashyUploadClick)
ButtonWidget.builder(uploadToCrashyText,this::handleCrashyUploadClick)
.dimensions(width / 2 - 155 + 160, height / 4 + 108 + 12, 150, 20)
.build()
);


Expand Down
18 changes: 9 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,31 @@ task_tree = { id = "com.dorongold.task-tree", version.ref = "task_tree" }
[versions]

# This Mod Version
mod_version = "4.2.0"
mod_version = "4.2.1"

# Gradle Plugins
architectury_plugin = "3.4-SNAPSHOT"
architectury_loom = "1.0-SNAPSHOT"
minotaur = "2.4.5"
loom_quiltflower = "1.7.4"
minotaur = "2.5.0"
loom_quiltflower = "1.8.0"
cursegradle = "1.4.0" # Must be updated in settings.gradle as well!
shadow = "7.1.2"
task_tree = "2.1.0"

# Minecraft
minecraft = "1.19.2"
minecraft = "1.19.3"

# CurseForge & Modrinth MC overrides (or "mc" to use the main version)
overrides_curseforge = "mc"
overrides_modrinth = "mc"

# Mods & Libraries
yarn_mappings = "1.19.2+build.28"
fabric_loader = "0.14.10"
fabric_api = "0.66.0+1.19.2"
yarn_mappings = "1.19.3+build.3"
fabric_loader = "0.14.11"
fabric_api = "0.69.1+1.19.3"
quilt_loader = "0.17.6"
forge = "43.1.52"
architectury_api = "6.3.49"
forge = "44.0.23"
architectury_api = "7.0.65"

[libraries]

Expand Down

0 comments on commit 613f639

Please sign in to comment.