Revert "Fix #209. Hardened plugin loading. IC2 machines load only with IC2"

This reverts commit 2986536e66.
This commit is contained in:
mezz committed 2014-09-22 23:20:58 -07:00
1 parent 624d5b481e
commit 0a1eba609c
16 files changed
+186 -295

No files matched your search

@@ -11,18 +11,20 @@
package forestry.plugins;
import cpw.mods.fml.common.IFuelHandler;
import java.util.Random;
import net.minecraft.command.ICommand;
import net.minecraft.world.World;
import cpw.mods.fml.common.event.FMLInterModComms.IMCMessage;
import cpw.mods.fml.common.network.IGuiHandler;
import forestry.core.interfaces.IOreDictionaryHandler;
import forestry.core.interfaces.IPacketHandler;
import forestry.core.interfaces.IPickupHandler;
import forestry.core.interfaces.IResupplyHandler;
import forestry.core.interfaces.ISaveEventHandler;
import net.minecraft.command.ICommand;
import net.minecraft.world.World;
import java.util.HashSet;
import java.util.Random;
import java.util.EnumSet;
public abstract class ForestryPlugin {
@@ -34,11 +36,8 @@ public abstract class ForestryPlugin {
return "";
}
public HashSet<Class<? extends ForestryPlugin>> getDependencies() {
HashSet<Class<? extends ForestryPlugin>> dependencies = new HashSet<Class<? extends ForestryPlugin>>();
dependencies.add(PluginCore.class);
return dependencies;
public EnumSet<PluginManager.Module> getDependancies() {
return EnumSet.of(PluginManager.Module.CORE);
}
protected void preInit() {