Add PreInit Event to the Api

This commit is contained in:
Nedelosk committed 2017-09-10 16:14:32 +02:00
1 parent 5df7b9252b
commit db49d305f4
4 files changed
+31 -6

No files matched your search

+3
View File
@@ -32,6 +32,7 @@ import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;
import forestry.api.core.ForestryAPI;
import forestry.api.core.ForestryEvent;
import forestry.core.EventHandlerCore;
import forestry.core.climate.ClimateStates;
import forestry.core.config.Config;
@@ -104,6 +105,8 @@ public class Forestry {
configFolder = new File(event.getModConfigurationDirectory(), Constants.MOD_ID);
Config.load(event.getSide());
MinecraftForge.EVENT_BUS.post(new ForestryEvent.PreInit(this, event));
PluginManager.runSetup(event);
String gameMode = Config.gameMode;