Open MrMasrozYTLIVE opened 1 month ago
Forgot to mention, this is how I register type:
AutoConfig.getGuiRegistry(ModConfig.class).registerTypeProvider((i18n, field, config, defaults, registry) -> {
Point point = (Point) config;
ModifierKeyCodeImpl keyCode = Utils.getUnsafely(field, point, CTPMod.DEFAULT_KEYBIND);
List<AbstractConfigListEntry> list = new ArrayList<>();
ConfigEntryBuilder builder = ConfigEntryBuilder.create();
list.add(builder.startModifierKeyCodeField(Text.translatable(i18n), keyCode)
.setModifierSaveConsumer(point::setKeyBind)
.setAllowMouse(false)
.build());
return list;
}, ModifierKeyCodeImpl.class);
Whenever I try to use ModifierKeyCode(Impl) in my config it just fails to read it:
It only happens when launched in IDE though