owo-lib icon indicating copy to clipboard operation
owo-lib copied to clipboard

[owo-config] Mod menu does not display double nested options

Open LubieKakao1212 opened this issue 7 months ago • 0 comments

When I try to nest nested configs they don't appear in the Modmenu config options. The json config works fine.

The code I have currently:

@Nest
public Dispensers DEVICES_DISPENSERS = new Dispensers();

public static class Dispensers {
    @Nest
    public DispenserDeviceConfig VANILLA_DISPENSER_DEVICE = new DispenserDeviceConfig(OpenCUConfigCommon.Defaults.VANILLA_DISPENSER_DEVICE);
    @Nest
    public DispenserDeviceConfig GOLDEN_DISPENSER_DEVICE = new DispenserDeviceConfig(OpenCUConfigCommon.Defaults.GOLDEN_DISPENSER_DEVICE);
    @Nest
    public DispenserDeviceConfig DIAMOND_DISPENSER_DEVICE = new DispenserDeviceConfig(OpenCUConfigCommon.Defaults.DIAMOND_DISPENSER_DEVICE);
    @Nest
    public DispenserDeviceConfig NETHERITE_DISPENSER_DEVICE = new DispenserDeviceConfig(OpenCUConfigCommon.Defaults.NETHERITE_DISPENSER_DEVICE);

}

I know that DispenserDeviceConfig works since when I put is outside of Dispensers it works fine

latest.log

LubieKakao1212 avatar Jul 18 '24 13:07 LubieKakao1212