Skip to content

fix(barrel): preserve data across world reloads - #223

Open
Minecraft0122 wants to merge 1 commit into
BreweryTeam:masterfrom
Minecraft0122:codex/fix-world-barrel-reload
Open

fix(barrel): preserve data across world reloads#223
Minecraft0122 wants to merge 1 commit into
BreweryTeam:masterfrom
Minecraft0122:codex/fix-world-barrel-reload

Conversation

@Minecraft0122

Copy link
Copy Markdown

Summary

  • register the existing world load/unload listener
  • reload persisted barrels when a world becomes available
  • save and unregister barrels when their world unloads
  • preserve unloaded-world barrel rows during autosaves
  • explicitly delete persisted rows when a barrel is actually destroyed
  • preserve Folia barrel data when detecting an unloaded world without an unload event

This replaces the debug-only approach in #198 with the actual fix.

Fixes #197.

Testing

  • ./gradlew compileJava --console=plain --no-daemon

Fhxa3 added a commit to FriendshipDashWorks/BreweryX that referenced this pull request Aug 7, 2026
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.

Unloading the world causes the barrel settings to disappear.

1 participant