Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies {
implementation include(fabricApi.module("fabric-api-base", project.fabric_version))
implementation include(fabricApi.module("fabric-resource-loader-v1", project.fabric_version))
implementation include(fabricApi.module("fabric-screen-api-v1", project.fabric_version))
implementation include(fabricApi.module("fabric-key-binding-api-v1", project.fabric_version))
implementation include(fabricApi.module("fabric-key-mapping-api-v1", project.fabric_version))
implementation include(fabricApi.module("fabric-lifecycle-events-v1", project.fabric_version))

// implementation include("eu.pb4:placeholder-api:${project.text_placeholder_api_version}")
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ archive_name=modmenu

minecraft_version=26.1-snapshot-1
loader_version=0.18.4
fabric_version=0.140.2+26.1
fabric_version=0.140.3+26.1
text_placeholder_api_version=2.8.1+1.21.10
quilt_loader_version=0.29.0-beta.3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.terraformersmc.modmenu.mixin.AccessorAbstractWidget;
import com.terraformersmc.modmenu.util.UpdateCheckerUtil;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.fabricmc.fabric.api.client.screen.v1.ScreenEvents;
import net.fabricmc.fabric.api.client.screen.v1.Screens;
import net.minecraft.client.KeyMapping;
Expand All @@ -34,7 +34,7 @@ public class ModMenuEventHandler {
private static KeyMapping MENU_KEY_BIND;

public static void register() {
MENU_KEY_BIND = KeyBindingHelper.registerKeyBinding(new KeyMapping(
MENU_KEY_BIND = KeyMappingHelper.registerKeyMapping(new KeyMapping(
"key.modmenu.open_menu",
InputConstants.Type.KEYSYM,
InputConstants.UNKNOWN.getValue(),
Expand All @@ -51,7 +51,7 @@ public static void afterScreenInit(Minecraft client, Screen screen, int scaledWi
}

private static void afterTitleScreenInit(Screen screen) {
final List<AbstractWidget> buttons = Screens.getButtons(screen);
final List<AbstractWidget> buttons = Screens.getWidgets(screen);
if (ModMenuConfig.MODIFY_TITLE_SCREEN.getValue()) {
int modsButtonIndex = -1;
final int spacing = 24;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private static Tooltip getCUSTOM_OPTIONS_TOOLTIP() {

@Inject(method = "createPauseMenu", at = @At("TAIL"))
private void onCreatePauseMenu(CallbackInfo ci) {
List<AbstractWidget> buttons = Screens.getButtons(this);
List<AbstractWidget> buttons = Screens.getWidgets(this);

if (ModMenuConfig.MODIFY_GAME_MENU.getValue()) {
int modsButtonIndex = -1;
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"depends": {
"fabric-resource-loader-v1": "*",
"fabric-screen-api-v1": "*",
"fabric-key-binding-api-v1": "*",
"fabric-key-mapping-api-v1": "*",
"fabric-lifecycle-events-v1": "*",
"fabricloader": ">=0.17.2",
"minecraft": ">1.21.10"
"minecraft": ">1.21.11"
},
"authors": [
"Prospector",
Expand Down