Гуи конфига не сохраняет изменения

Версия Minecraft
1.7.10

will0376

Токсичная личность
2,086
55
585
Собственно, сабж. Я думаю, что не отрабатывает эвент, ибо никаких сообщений в лог я не получаю от него
Java:
    @EventHandler
    public void preInit(FMLPreInitializationEvent event) {      
        configFile = new Configuration(event.getSuggestedConfigurationFile());
        syncConfig();
        proxy.preInit(event);
    }


    @EventHandler
    public void init(FMLInitializationEvent event) {
        //FMLCommonHandler.instance().bus().register(instance);    //Мб я тут накосячил?
        MinecraftForge.EVENT_BUS.register(instance);    //что из этих двоих использовать то?
        proxy.init(event);
       
    }
    @EventHandler
    public void postInit(FMLPostInitializationEvent event) {
        proxy.postInit(event);
    }

   
    public static void syncConfig() {
        main.colouredfps = configFile.getBoolean("colouredfps", "general", true, "colouredfps");
        main.debugm = configFile.getBoolean("debugm", "general", false, "debugm");
        main.debugpic = configFile.getBoolean("debugpic", "general", false, "debugpic");
        main.Serverip = configFile.getString("Serverip", "Server Ip", Serverip, "Serverip");
        main.ServerPort = configFile.getString("Serverip", "Server Ip", ServerPort, "ServerPort");

        if(configFile.hasChanged())
            configFile.save();
    }
   
    @SubscribeEvent
    public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event){
        if(event.modID.equals("will0376api")){
            syncConfig();
            System.out.println("O_o working");
        }
    }
P.s. MODID = "will0376api";
 

will0376

Токсичная личность
2,086
55
585
Последнее редактирование:
Сверху