From 0cb29070fd099e1645ae27cac261388e762e8874 Mon Sep 17 00:00:00 2001 From: Prospector Date: Wed, 29 Nov 2023 15:17:26 -0800 Subject: [PATCH] Update to 1.20.3-pre4 - Updated to 1.20.3-pre4 --- gradle.properties | 10 +++++----- .../com/terraformersmc/modmenu/gui/ModsScreen.java | 2 +- .../modmenu/gui/widget/LegacyTexturedButtonWidget.java | 2 +- .../modmenu/gui/widget/ModMenuButtonWidget.java | 4 ++-- .../gui/widget/UpdateCheckerTexturedButtonWidget.java | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gradle.properties b/gradle.properties index f103e5c1d..d2664201c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,10 +3,10 @@ org.gradle.jvmargs=-Xmx1G maven_group=com.terraformersmc archive_name=modmenu -minecraft_version=23w46a -yarn_mappings=23w46a+build.4 -loader_version=0.14.24 -fabric_version=0.90.9+1.20.3 +minecraft_version=1.20.3-pre4 +yarn_mappings=1.20.3-pre4+build.2 +loader_version=0.14.25 +fabric_version=0.91.1+1.20.3 quilt_loader_version=0.17.7 # Project Metadata @@ -20,7 +20,7 @@ default_release_type=stable # Modrinth Metadata modrinth_slug=modmenu modrinth_id=mOgUt4GM -modrinth_game_versions=23w46a +modrinth_game_versions=1.20.3-pre4 modrinth_mod_loaders=fabric, quilt # Mod Loader Metadata diff --git a/src/main/java/com/terraformersmc/modmenu/gui/ModsScreen.java b/src/main/java/com/terraformersmc/modmenu/gui/ModsScreen.java index 6349035b3..d32ba5a05 100644 --- a/src/main/java/com/terraformersmc/modmenu/gui/ModsScreen.java +++ b/src/main/java/com/terraformersmc/modmenu/gui/ModsScreen.java @@ -508,7 +508,7 @@ public void filesDragged(List paths) { } if (allSuccessful) { - SystemToast.add(client.getToastManager(), SystemToast.Type.TUTORIAL_HINT, ModMenuScreenTexts.DROP_SUCCESSFUL_LINE_1, ModMenuScreenTexts.DROP_SUCCESSFUL_LINE_1); + SystemToast.add(client.getToastManager(), SystemToast.Type.PERIODIC_NOTIFICATION, ModMenuScreenTexts.DROP_SUCCESSFUL_LINE_1, ModMenuScreenTexts.DROP_SUCCESSFUL_LINE_1); } } this.client.setScreen(this); diff --git a/src/main/java/com/terraformersmc/modmenu/gui/widget/LegacyTexturedButtonWidget.java b/src/main/java/com/terraformersmc/modmenu/gui/widget/LegacyTexturedButtonWidget.java index 1167447d5..d43883ba5 100644 --- a/src/main/java/com/terraformersmc/modmenu/gui/widget/LegacyTexturedButtonWidget.java +++ b/src/main/java/com/terraformersmc/modmenu/gui/widget/LegacyTexturedButtonWidget.java @@ -30,7 +30,7 @@ public LegacyTexturedButtonWidget(int x, int y, int width, int height, int u, in } @Override - public void renderButton(DrawContext context, int mouseX, int mouseY, float delta) { + public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta) { int v = this.v; if (!this.isNarratable()) { diff --git a/src/main/java/com/terraformersmc/modmenu/gui/widget/ModMenuButtonWidget.java b/src/main/java/com/terraformersmc/modmenu/gui/widget/ModMenuButtonWidget.java index eb93b4b60..8d88a2b4e 100644 --- a/src/main/java/com/terraformersmc/modmenu/gui/widget/ModMenuButtonWidget.java +++ b/src/main/java/com/terraformersmc/modmenu/gui/widget/ModMenuButtonWidget.java @@ -16,8 +16,8 @@ public ModMenuButtonWidget(int x, int y, int width, int height, Text text, Scree } @Override - public void renderButton(DrawContext DrawContext, int mouseX, int mouseY, float delta) { - super.renderButton(DrawContext, mouseX, mouseY, delta); + public void renderWidget(DrawContext DrawContext, int mouseX, int mouseY, float delta) { + super.renderWidget(DrawContext, mouseX, mouseY, delta); if (ModMenuConfig.BUTTON_UPDATE_BADGE.getValue() && ModMenu.areModUpdatesAvailable()) { UpdateAvailableBadge.renderBadge(DrawContext, this.width + this.getX() - 16, this.height / 2 + this.getY() - 4); } diff --git a/src/main/java/com/terraformersmc/modmenu/gui/widget/UpdateCheckerTexturedButtonWidget.java b/src/main/java/com/terraformersmc/modmenu/gui/widget/UpdateCheckerTexturedButtonWidget.java index adc85f159..d8ded470a 100644 --- a/src/main/java/com/terraformersmc/modmenu/gui/widget/UpdateCheckerTexturedButtonWidget.java +++ b/src/main/java/com/terraformersmc/modmenu/gui/widget/UpdateCheckerTexturedButtonWidget.java @@ -15,8 +15,8 @@ public UpdateCheckerTexturedButtonWidget(int x, int y, int width, int height, in } @Override - public void renderButton(DrawContext DrawContext, int mouseX, int mouseY, float delta) { - super.renderButton(DrawContext, mouseX, mouseY, delta); + public void renderWidget(DrawContext DrawContext, int mouseX, int mouseY, float delta) { + super.renderWidget(DrawContext, mouseX, mouseY, delta); if (ModMenuConfig.BUTTON_UPDATE_BADGE.getValue() && ModMenu.areModUpdatesAvailable()) { UpdateAvailableBadge.renderBadge(DrawContext, this.getX() + this.width - 5, this.getY() - 3); }