Skip to content

Commit

Permalink
Fix Crash on 24w18a
Browse files Browse the repository at this point in the history
clicks the ModMenuOptions of this mod it crashes
because the class GameOptionsScreen in 24w18a
changed to abstract class. So the edit of
ModMenuModMenuCompat is needed.
  • Loading branch information
sdy623 committed May 11, 2024
1 parent bb0461f commit a4bf889
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ org.gradle.jvmargs=-Xmx1G
maven_group=com.terraformersmc
archive_name=modmenu

minecraft_version=1.20.6
yarn_mappings=1.20.6+build.1
loader_version=0.15.10
fabric_version=0.97.8+1.20.6
minecraft_version=24w18a
yarn_mappings=24w18a+build.1
loader_version=0.15.11
fabric_version=0.98.0+1.21
quilt_loader_version=0.17.7

# Project Metadata
Expand All @@ -20,13 +20,13 @@ default_release_type=stable
# Modrinth Metadata
modrinth_slug=modmenu
modrinth_id=mOgUt4GM
modrinth_game_versions=1.20.6
modrinth_game_versions=24w18a
modrinth_mod_loaders=fabric, quilt

# CurseForge Metadata
curseforge_slug=modmenu
curseforge_id=308702
curseforge_game_versions=1.20.6, Fabric, Quilt
curseforge_game_versions=24w18a, Fabric, Quilt
curseforge_required_dependencies=
curseforge_optional_dependencies=

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ public ModMenuOptionsScreen(Screen previous) {

@Override
protected void init() {
this.list = this.addDrawableChild(new OptionListWidget(this.client, this.width, this.height, this));
this.list = this.addDrawableChild(new OptionListWidget(this.client, this.width, this));
this.list.addAll(ModMenuConfig.asOptions());
super.init();
}

@Override
protected void method_60325() {
}

@Override
protected void initTabNavigation() {
super.initTabNavigation();
Expand Down

0 comments on commit a4bf889

Please sign in to comment.