From c134111d04b61f524ae0b26b918604567e7dcac5 Mon Sep 17 00:00:00 2001 From: natanfudge Date: Fri, 22 Sep 2023 08:58:39 +0300 Subject: [PATCH] 1.20.2 --- .../fudge/notenoughcrashes/config/MidnightConfig.java | 2 +- .../java/fudge/notenoughcrashes/gui/CrashScreen.java | 2 +- .../fudge/notenoughcrashes/gui/InitErrorScreen.java | 2 +- .../notenoughcrashes/mixinhandlers/InGameCatcher.java | 1 - gradle/libs.versions.toml | 10 +++++----- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/common/src/main/java/fudge/notenoughcrashes/config/MidnightConfig.java b/common/src/main/java/fudge/notenoughcrashes/config/MidnightConfig.java index 2f24e88..cdf8e42 100644 --- a/common/src/main/java/fudge/notenoughcrashes/config/MidnightConfig.java +++ b/common/src/main/java/fudge/notenoughcrashes/config/MidnightConfig.java @@ -357,7 +357,7 @@ public void init() { @Override public void render(DrawContext context, int mouseX, int mouseY, float delta) { - this.renderBackground(context); + this.renderBackground(context, mouseX, mouseY, delta); this.list.render(context, mouseX, mouseY, delta); context.drawCenteredTextWithShadow(textRenderer, title, width / 2, 15, 0xFFFFFF); diff --git a/common/src/main/java/fudge/notenoughcrashes/gui/CrashScreen.java b/common/src/main/java/fudge/notenoughcrashes/gui/CrashScreen.java index 87a89c3..7b63a73 100644 --- a/common/src/main/java/fudge/notenoughcrashes/gui/CrashScreen.java +++ b/common/src/main/java/fudge/notenoughcrashes/gui/CrashScreen.java @@ -43,7 +43,7 @@ public void init() { @Override public void render(DrawContext context, int mouseX, int mouseY, float delta) { - renderBackground(context); + renderBackground(context, mouseX, mouseY, delta); context.drawCenteredTextWithShadow(textRenderer, NecLocalization.localize("notenoughcrashes.crashscreen.title"), width / 2, height / 4 - 40, 0xFFFFFF); int textColor = 0xD0D0D0; diff --git a/common/src/main/java/fudge/notenoughcrashes/gui/InitErrorScreen.java b/common/src/main/java/fudge/notenoughcrashes/gui/InitErrorScreen.java index bb4be4c..ed16827 100644 --- a/common/src/main/java/fudge/notenoughcrashes/gui/InitErrorScreen.java +++ b/common/src/main/java/fudge/notenoughcrashes/gui/InitErrorScreen.java @@ -36,7 +36,7 @@ public void init() { @Override public void render(DrawContext context, int mouseX, int i, float f) { - renderBackground(context); + renderBackground(context, mouseX, i, f); context.drawCenteredTextWithShadow(textRenderer, NecLocalization.localize("notenoughcrashes.initerrorscreen.title"), width / 2, height / 4 - 40, 0xFFFFFF); context.drawTextWithShadow(textRenderer, NecLocalization.localize("notenoughcrashes.initerrorscreen.summary"), x, y, TEXT_COLOR); diff --git a/common/src/main/java/fudge/notenoughcrashes/mixinhandlers/InGameCatcher.java b/common/src/main/java/fudge/notenoughcrashes/mixinhandlers/InGameCatcher.java index 21ab813..78f82fd 100644 --- a/common/src/main/java/fudge/notenoughcrashes/mixinhandlers/InGameCatcher.java +++ b/common/src/main/java/fudge/notenoughcrashes/mixinhandlers/InGameCatcher.java @@ -102,7 +102,6 @@ private static void displayCrashScreen(CrashReport report, int crashCount, boole // Vanilla does this when switching to main menu but not our custom crash screen // nor the out of memory screen (see https://bugs.mojang.com/browse/MC-128953) - getClient().options.debugEnabled = false; getClient().inGameHud.getChatHud().clear(true); // Display the crash screen diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 44dd508..93a25db 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -25,7 +25,7 @@ shadow = "7.1.2" task_tree = "2.1.0" # Minecraft -minecraft = "1.20.1" +minecraft = "1.20.2" # CurseForge & Modrinth MC overrides (or "mc" to use the main version) overrides_curseforge = "mc" @@ -33,11 +33,11 @@ overrides_modrinth = "mc" release_type = "release" # Mods & Libraries -yarn_mappings = "1.20.1+build.2" -fabric_loader = "0.14.21" -fabric_api = "0.83.1+1.20.1" +yarn_mappings = "1.20.2+build.1" +fabric_loader = "0.14.22" +fabric_api = "0.89.1+1.20.2" quilt_loader = "0.17.6" -forge = "47.0.1" +forge = "48.0.1" architectury_api = "9.0.8" [libraries]