Cleanroom icon indicating copy to clipboard operation
Cleanroom copied to clipboard

Remove the configuration file registration restriction.

Open Ecdcaeb opened this issue 8 months ago • 0 comments

This method is for classes without ASMData.

  1. In addition to Coremod, dynamically generated classes also need to use it.
  2. Synchronization in general, such as the following code, does not work properly due to the lack of ASMDataTable. And we cannot use it when synchronization is required.
     @SubscribeEvent
     public static void onConfigChanged(final ConfigChangedEvent.OnConfigChangedEvent event) {
            if (Reference.MODID.equals(event.getModID())) {
                ConfigManager.sync(Reference.MODID, Config.Type.INSTANCE); // Want to sync the data in class
            }
        }

(the register(Class) has the same function of sync...)

Ecdcaeb avatar Apr 23 '25 14:04 Ecdcaeb