Skip to content

Fix GUI slot duplication and empty sell navigation - #304

Closed
Alexteens24 wants to merge 1 commit into
OpenVdra:mainfrom
Alexteens24:agent/fix-gui-layout-reload-and-empty-sell
Closed

Fix GUI slot duplication and empty sell navigation#304
Alexteens24 wants to merge 1 commit into
OpenVdra:mainfrom
Alexteens24:agent/fix-gui-layout-reload-and-empty-sell

Conversation

@Alexteens24

Copy link
Copy Markdown
Contributor

Summary

  • preserve user-managed slot_* sections when GUI layout files are migrated
  • keep top-level GUI settings eligible for automatic config updates
  • collect available XP without navigating away when sell_and_exp has no items to sell
  • show the storage-empty failure state without reopening the main GUI when both storage and XP are empty

Root cause

The version-less YAML migrator treated missing slot paths as missing defaults. Moving or deleting a configured button therefore caused its original default slot to be restored on reload.

The empty sell_and_exp path also called a legacy XP helper that always reopened the main GUI, including when there was no XP to collect.

Impact

Server owners can move or remove GUI buttons without the updater duplicating them. Players using layouts such as DonutSMP_v2 remain in the current GUI when an empty sell action fails or only collects XP.

Validation

  • ./gradlew build
  • git diff --check

Closes #301

@Alexteens24
Alexteens24 marked this pull request as ready for review July 29, 2026 01:23
@Alexteens24
Alexteens24 deleted the agent/fix-gui-layout-reload-and-empty-sell branch July 29, 2026 02:55
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.

[Bug]:

1 participant