Skip to content

Fix MMOITems lore duplication issue#278

Merged
BlitzOffline merged 3 commits into
mainfrom
improvements
May 24, 2026
Merged

Fix MMOITems lore duplication issue#278
BlitzOffline merged 3 commits into
mainfrom
improvements

Conversation

@BlitzOffline

Copy link
Copy Markdown
Member

Closes #277

This fixes 2 issues:

  1. MMOItem item lores being duplicated after a [refresh] or menu reopen.
  2. Menu commands sometimes not being properly registered.

The first issue was caused because the items were not always cloned.
The second issue was caused because command registration was delayed using a scheduler. This issue was added with Folia support. In case menu registration starts to fail on Folia now, we may need to schedule the registration but only when the server is Folia.

Tested by a person in discord: https://discord.com/channels/164280494874165248/1381994944960401501

@Kqliber Kqliber left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to be tested on folia at some point

@BlitzOffline BlitzOffline merged commit 1e8437f into main May 24, 2026
2 checks passed
@BlitzOffline BlitzOffline deleted the improvements branch May 24, 2026 13:07
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.

Lore duplicated after using [refresh] action with MMO Items

2 participants