Skip to content

[MUI2] Add basic magnet implementation#4599

Draft
jurrejelle wants to merge 1 commit intomui2-refactorfrom
jj/port-magnets
Draft

[MUI2] Add basic magnet implementation#4599
jurrejelle wants to merge 1 commit intomui2-refactorfrom
jj/port-magnets

Conversation

@jurrejelle
Copy link
Contributor

What

Basic, almost 1:1 implementation of magnets from LDLib to MUI
Draft because right now onCloseListeners aren't called and we use those to save the magnets filter data to NBT

How Was This Tested

In game but it doesn't work yet lol

Currently, this naively re-builds the filter. This is because the filter's MUI code creates a ModularPanel, but I need to embed it into the magnet's UI. It's worth considering if we want to somehow de-duplicate this.

@jurrejelle jurrejelle added type: refactor Suggestion to refactor a section of code 1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Feb 10, 2026
@jurrejelle jurrejelle mentioned this pull request Feb 10, 2026
@github-actions github-actions bot added the Tests: Passed Game Tests have passed on this PR label Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. Tests: Passed Game Tests have passed on this PR type: refactor Suggestion to refactor a section of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant