hello everyone, so i have a problem, i started making a config but it doesn't work, basicly i wan't to make it so you would be able to select activate specific mob or not? (register mob) but it doesn't work, can you tell me whats wrong?
main file
@EventHandler
public void preInit(FMLPreInitializationEvent e) {
Config.loadConfig(e);
}
Config
public class Config
{
public static boolean EnableHallowenCow = true;
public static void loadConfig(FMLPreInitializationEvent event)
{
Configuration config = new Configuration(event.getSuggestedConfigurationFile());
config.load();
EnableHallowenCow = config.get(Configuration.CATEGORY_GENERAL, "EnableHallowenCow", true).getBoolean(true);
config.save();
}
}
settings in entity class
if (Config.EnableHallowenCow == true){
EntityRegistry.registerGlobalEntityID(EntityHallowenCow.class, "HallowenCow", EntityRegistry.findGlobalUniqueEntityId(), 0x7AE8FF, 0x47FFE5);
}
basicly config appears but won't mob dissapear, i set mob active to false, mob will still be in the game, will not dissapear.