Skip to content

Commit 78a9e2d

Browse files
committed
fix #179
1 parent acca035 commit 78a9e2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/cleanroommc/modularui/value/sync/PanelSyncManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public void onOpen() {
9999
@ApiStatus.Internal
100100
public void onClose() {
101101
this.closeListener.forEach(listener -> listener.accept(getPlayer()));
102+
this.syncHandlers.values().forEach(SyncHandler::dispose);
102103
// Previously panel sync handlers were removed from the main psm, however this problematic if the screen will be reopened at some
103104
// point. We can just not remove the sync handlers since mui has proper checks for re-registering panels.
104105
}

0 commit comments

Comments
 (0)