mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-16 18:44:45 +00:00
Fix #209. Hardened plugin loading. IC2 machines load only with IC2
This commit is contained in:
1 parent
23ae1abb06
commit
2986536e66
16 files changed
+295
-186
No files matched your search
@@ -11,20 +11,18 @@
|
||||
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 java.util.EnumSet;
|
||||
import net.minecraft.command.ICommand;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Random;
|
||||
|
||||
public abstract class ForestryPlugin {
|
||||
|
||||
@@ -36,8 +34,11 @@ public abstract class ForestryPlugin {
|
||||
return "";
|
||||
}
|
||||
|
||||
public EnumSet<PluginManager.Module> getDependancies() {
|
||||
return EnumSet.of(PluginManager.Module.CORE);
|
||||
public HashSet<Class<? extends ForestryPlugin>> getDependencies() {
|
||||
HashSet<Class<? extends ForestryPlugin>> dependencies = new HashSet<Class<? extends ForestryPlugin>>();
|
||||
dependencies.add(PluginCore.class);
|
||||
|
||||
return dependencies;
|
||||
}
|
||||
|
||||
protected void preInit() {
|
||||
|
||||
Reference in new issue
Block a user