package fi.dungeon.animalbomb.init;

import fi.dungeon.animalbomb.AnimalBomb;
import net.minecraftforge.common.config.Config;
import net.minecraftforge.common.config.ConfigManager;
import net.minecraftforge.fml.client.event.ConfigChangedEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

@Config(modid = AnimalBomb.MODID)
public class ModConfig {

	@Config.Comment("Size of flock.")
	@Config.RangeInt(min = 1, max = 20)
	public static int numberOfAnimals = 10;

	@Config.Comment("Burning time in seconds.")
	@Config.RangeInt(min = 0, max = 20)
	public static int burningDuration = 2;

	@Mod.EventBusSubscriber
	static class ConfigurationHolder {

		@SubscribeEvent
		public static void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
			System.out.println("HELLO1 " + numberOfAnimals);
			if (event.getModID().equals(AnimalBomb.MODID)) {
				ConfigManager.sync(AnimalBomb.MODID, Config.Type.INSTANCE);
				System.out.println("HELLO " + numberOfAnimals);
			}
		}
	}
}
@@ -813,60 +813,8 @@
 ) %7B%0A
-%09%09%09System.out.println(%22HELLO1 %22 + numberOfAnimals);%0A
 %09%09%09i
@@ -929,60 +929,8 @@
 E);%0A
-%09%09%09%09System.out.println(%22HELLO %22 + numberOfAnimals);%0A
 %09%09%09%7D
@@ -938,8 +938,9 @@
 %09%09%7D%0A%09%7D%0A%7D
+%0A

Update ModConfig.java