@@ -158,7 +158,7 @@ public ModularPanel buildUI(PosGuiData guiData, PanelSyncManager syncManager, UI
158158
159159 Rectangle colorPickerBackground = new Rectangle ().setColor (Color .RED .main );
160160 ModularPanel panel = new ModularPanel ("test_tile" );
161- IPanelHandler panelSyncHandler = syncManager .panel ("other_panel" , this ::openSecondWindow , true );
161+ IPanelHandler panelSyncHandler = syncManager .syncedPanel ("other_panel" , true , this ::openSecondWindow );
162162 IPanelHandler colorPicker = IPanelHandler .simple (panel , (mainPanel , player ) -> new ColorPickerDialog (colorPickerBackground ::setColor , colorPickerBackground .getColor (), true )
163163 .setDraggable (true )
164164 .relative (panel )
@@ -502,8 +502,8 @@ public ModularPanel openSecondWindow(PanelSyncManager syncManager, IPanelHandler
502502 syncManager .registerSlotGroup (slotGroup );
503503 AtomicInteger number = new AtomicInteger (0 );
504504 syncManager .syncValue ("int_value" , new IntSyncValue (number ::get , number ::set ));
505- IPanelHandler panelSyncHandler = syncManager .panel ("other_panel_2" , (syncManager1 , syncHandler1 ) ->
506- openThirdWindow (syncManager1 , syncHandler1 , number ), true );
505+ IPanelHandler panelSyncHandler = syncManager .syncedPanel ("other_panel_2" , true , (syncManager1 , syncHandler1 ) ->
506+ openThirdWindow (syncManager1 , syncHandler1 , number ));
507507 panel .child (ButtonWidget .panelCloseButton ())
508508 .child (new ButtonWidget <>()
509509 .size (10 ).top (14 ).right (4 )
0 commit comments