File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/com/cleanroommc/modularui/widget Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -144,13 +144,16 @@ public void afterInit() {}
144144
145145 /**
146146 * Retrieves, verifies, and initialises a linked sync handler.
147- * Custom logic should be handled in {@link #isValidSyncHandler(SyncHandler )}.
147+ * Custom logic should be handled in {@link #setSyncOrValue(ISyncOrValue )}.
148148 */
149149 @ Override
150150 public void initialiseSyncHandler (ModularSyncManager syncManager , boolean late ) {
151151 SyncHandler handler = this .syncHandler ;
152152 if (handler == null && this .syncKey != null ) {
153153 handler = syncManager .getSyncHandler (getPanel ().getName (), this .syncKey );
154+ if (handler == null && !syncManager .getMainPSM ().getPanelName ().equals (getPanel ().getName ())) {
155+ handler = syncManager .getMainPSM ().getSyncHandlerFromMapKey (this .syncKey );
156+ }
154157 }
155158 if (handler != null ) setSyncOrValue (handler );
156159 if (this .syncHandler instanceof ValueSyncHandler <?> valueSyncHandler && valueSyncHandler .getChangeListener () == null ) {
You can’t perform that action at this time.
0 commit comments