Skip to content

Commit c08eeef

Browse files
authored
Update mod to Minecraft 1.21.9 (#903)
- Updated to Minecraft 1.21.9
1 parent 70a0789 commit c08eeef

16 files changed

Lines changed: 167 additions & 158 deletions

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'fabric-loom' version '1.10-SNAPSHOT'
2+
id 'fabric-loom' version '1.11-SNAPSHOT'
33
}
44

55
apply from: 'https://raw.githubusercontent.com/TerraformersMC/GradleScripts/2.7/ferry.gradle'

gradle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ org.gradle.parallel=true
44
maven_group=com.terraformersmc
55
archive_name=modmenu
66

7-
minecraft_version=1.21.8
8-
yarn_mappings=1.21.8+build.1
7+
minecraft_version=1.21.9
8+
yarn_mappings=1.21.9+build.1
99
loader_version=0.17.2
10-
fabric_version=0.133.0+1.21.8
11-
text_placeholder_api_version=2.7.2+1.21.8
10+
fabric_version=0.133.14+1.21.9
11+
text_placeholder_api_version=2.8.0+1.21.9
1212
quilt_loader_version=0.29.0-beta.3
1313

1414
# Project Metadata
@@ -22,14 +22,14 @@ default_release_type=stable
2222
# Modrinth Metadata
2323
modrinth_slug=modmenu
2424
modrinth_id=mOgUt4GM
25-
modrinth_game_versions=1.21.6, 1.21.7, 1.21.8
25+
modrinth_game_versions=1.21.9
2626
modrinth_mod_loaders=fabric, quilt
2727
modrinth_required_dependencies=fabric-api, placeholder-api
2828

2929
# CurseForge Metadata
3030
curseforge_slug=modmenu
3131
curseforge_id=308702
32-
curseforge_game_versions=1.21.6, 1.21.7, 1.21.8, Fabric, Quilt
32+
curseforge_game_versions=1.21.9, Fabric, Quilt
3333
curseforge_required_dependencies=fabric-api, text-placeholder-api
3434
curseforge_optional_dependencies=
3535

gradle/wrapper/gradle-wrapper.jar

59 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/terraformersmc/modmenu/event/ModMenuEventHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static void register() {
3838
"key.modmenu.open_menu",
3939
InputUtil.Type.KEYSYM,
4040
InputUtil.UNKNOWN_KEY.getCode(),
41-
"key.categories.misc"
41+
KeyBinding.Category.MISC
4242
));
4343
ClientTickEvents.END_CLIENT_TICK.register(ModMenuEventHandler::onClientEndTick);
4444
ScreenEvents.AFTER_INIT.register(ModMenuEventHandler::afterScreenInit);

src/main/java/com/terraformersmc/modmenu/gui/ModsScreen.java

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
import net.minecraft.client.gui.widget.ButtonWidget;
2525
import net.minecraft.client.gui.widget.ClickableWidget;
2626
import net.minecraft.client.gui.widget.TextFieldWidget;
27+
import net.minecraft.client.input.CharInput;
28+
import net.minecraft.client.input.KeyInput;
2729
import net.minecraft.client.resource.language.I18n;
2830
import net.minecraft.client.toast.SystemToast;
2931
import net.minecraft.screen.ScreenTexts;
@@ -205,7 +207,9 @@ protected void init() {
205207
ConfirmLinkScreen.open(this, url, true);
206208
} else {
207209
var url = mod.getWebsite();
208-
ConfirmLinkScreen.open(this, url, false);
210+
if (url != null) {
211+
ConfirmLinkScreen.open(this, url, false);
212+
}
209213
}
210214
})
211215
.position(this.rightPaneX + (urlButtonWidths / 2) - (cappedButtonWidth / 2), RIGHT_PANE_Y + 36)
@@ -220,7 +224,9 @@ protected void init() {
220224
ConfirmLinkScreen.open(this, Urls.SNAPSHOT_BUGS, true);
221225
} else {
222226
var url = mod.getIssueTracker();
223-
ConfirmLinkScreen.open(this, url, false);
227+
if (url != null) {
228+
ConfirmLinkScreen.open(this, url, false);
229+
}
224230
}
225231
})
226232
.position(this.rightPaneX + urlButtonWidths + 4 + (urlButtonWidths / 2) - (cappedButtonWidth / 2), RIGHT_PANE_Y + 36)
@@ -274,13 +280,13 @@ protected void init() {
274280
}
275281

276282
@Override
277-
public boolean keyPressed(int keyCode, int scanCode, int modifiers) {
278-
return super.keyPressed(keyCode, scanCode, modifiers) || this.searchBox.keyPressed(keyCode, scanCode, modifiers);
283+
public boolean keyPressed(KeyInput input) {
284+
return super.keyPressed(input) || this.searchBox.keyPressed(input);
279285
}
280286

281287
@Override
282-
public boolean charTyped(char chr, int keyCode) {
283-
return this.searchBox.charTyped(chr, keyCode);
288+
public boolean charTyped(CharInput input) {
289+
return this.searchBox.charTyped(input);
284290
}
285291

286292
@Override
@@ -523,7 +529,7 @@ public void updateSelectedEntry(ModListEntry entry) {
523529
this.selected = entry;
524530
String modId = selected.getMod().getId();
525531

526-
this.descriptionListWidget.updateSelectedModIfRequired(selected.getMod());
532+
this.descriptionListWidget.updateSelectedMod(selected.getMod());
527533

528534
if (this.configureButton != null) {
529535

0 commit comments

Comments
 (0)