package com.hea3ven.hardmodetweaks.other;

import net.minecraft.entity.EntityCreature;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.ai.EntityAIPanic;
import net.minecraft.entity.ai.EntityAITasks;

import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.EntityJoinWorldEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

import com.hea3ven.hardmodetweaks.config.Config;
import com.hea3ven.hardmodetweaks.other.entity.ai.EntityAIPanicAway;

public class AITweaksManager {

	public static boolean enableTweakAnimalAI;

	@SubscribeEvent
	public void specialSpawnEvent(EntityJoinWorldEvent e) {
		if (enableTweakAnimalAI && e.entity instanceof EntityLiving) {
			replaceAIPanicTask((EntityLiving) e.entity);
		}
	}

	private void replaceAIPanicTask(EntityLiving entity) {
		EntityAITasks.EntityAITaskEntry panicTask = null;
		for (Object taskEntryObj : entity.tasks.taskEntries) {
			EntityAITasks.EntityAITaskEntry taskEntry = (EntityAITasks.EntityAITaskEntry) taskEntryObj;
			if (taskEntry.action instanceof EntityAIPanic) {
				panicTask = taskEntry;
			}
		}
		if (panicTask != null) {
			entity.tasks.removeTask(panicTask.action);
			entity.tasks.addTask(panicTask.priority, new EntityAIPanicAway(
					(EntityCreature) entity, 2.5f));
		}
	}
}

@@ -219,57 +219,8 @@
 s;%0A%0A
-import net.minecraftforge.common.MinecraftForge;%0A
 impo
@@ -347,57 +347,8 @@
 t;%0A%0A
-import com.hea3ven.hardmodetweaks.config.Config;%0A
 impo

Remove unused imports