Skip to content

Fix/bugs#1

Merged
tickwarden merged 2 commits into
mainfrom
fix/bugs
May 16, 2026
Merged

Fix/bugs#1
tickwarden merged 2 commits into
mainfrom
fix/bugs

Conversation

@asn44nb
Copy link
Copy Markdown
Collaborator

@asn44nb asn44nb commented May 16, 2026

No description provided.

Claude added 2 commits May 16, 2026 13:36
…e guard, version mismatch

- BarrelGuiHandler: consume ALL non-PICKUP slot actions (THROW, CLONE, QUICK_MOVE, etc.)
  to prevent item manipulation; only PICKUP triggers button actions.
  Previously QUICK_MOVE was incorrectly allowed to trigger actions.
- BarrelGuiHandler: move OPEN_GUIS.put before buildInventory to eliminate
  race condition where handleClick could fire before state was registered.
- BarrelGuiHandler: log WARN when unknown item id falls back to stone instead
  of silently substituting.
- GuiRegistry: skip and warn on unsupported GUI types (e.g. legacy 'dialog')
  instead of silently loading them as empty GUIs.
- gradle.properties: sync fabric_version to 0.116.12+1.21.1 to match build.gradle.
… Menu

1. Fix rows not working
   - GuiScreenHandler.onSlotClick: replaced definition.getRows()*9 with
     GenericContainerScreenHandler.getRows()*9 — these must match the actual
     inventory size, not the raw JSON value.
   - GuiDefinition.getRows(): now always returns Math.clamp(rows,1,6) so
     callers never get an out-of-range value.

2. Left / Right / Shift click support
   - Added ClickType enum: ANY | LEFT | RIGHT | SHIFT
   - Added click_type field to Button record (default: ANY)
   - GuiScreenHandler passes mouseButton int to handleClick
   - handleClick resolves isLeft/isRight/isShift from mouseButton +
     SlotActionType, then matches against button's ClickType filter.

3. /guiapi reload and /guiapi help subcommands
   - reload: delegates to server.reloadResources() — same pipeline as /reload
   - help: prints all commands and button JSON field reference
   - list: now also shows rows count alongside pages

4. Mod Menu integration
   - build.gradle: modCompileOnly modmenu:11.0.3 via Modrinth maven
   - GuiApiModMenuEntry: info screen showing loaded GUIs with rows/pages
   - fabric.mod.json: modmenu entrypoint + suggests: modmenu
@tickwarden tickwarden merged commit 329a43e into main May 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants