This commit is contained in:
gegy1000 2018-06-10 17:26:09 +02:00
parent ecf20f1a76
commit 0656c6211b
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import net.minecraftforge.fml.common.FMLCommonHandler
import net.minecraftforge.fml.common.Loader import net.minecraftforge.fml.common.Loader
import net.minecraftforge.fml.common.Mod import net.minecraftforge.fml.common.Mod
import net.minecraftforge.fml.common.Mod.EventHandler import net.minecraftforge.fml.common.Mod.EventHandler
import net.minecraftforge.fml.common.event.FMLConstructionEvent import net.minecraftforge.fml.common.event.FMLPreInitializationEvent
/** /**
* @author shadowfacts * @author shadowfacts
@ -17,9 +17,9 @@ object Forgelin {
const val VERSION = "@VERSION@" const val VERSION = "@VERSION@"
@EventHandler @EventHandler
fun onConstruction(event: FMLConstructionEvent) { fun onPreInit(event: FMLPreInitializationEvent) {
Loader.instance().modList.forEach { Loader.instance().modList.forEach {
ForgelinAutomaticEventSubscriber.subscribeAutomatic(it, event.asmHarvestedData, FMLCommonHandler.instance().side) ForgelinAutomaticEventSubscriber.subscribeAutomatic(it, event.asmData, FMLCommonHandler.instance().side)
} }
} }
} }