2014-06-19 20:18:04 +02:00
|
|
|
package com.pahimar.ee3.handler;
|
|
|
|
|
2014-07-14 18:04:20 +02:00
|
|
|
import com.pahimar.ee3.exchange.DynamicEnergyValueInitThread;
|
2014-06-19 20:18:04 +02:00
|
|
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
|
|
|
import net.minecraftforge.event.world.WorldEvent;
|
|
|
|
|
|
|
|
public class WorldEventHandler
|
|
|
|
{
|
2014-07-14 18:04:20 +02:00
|
|
|
private static boolean hasInitilialized = false;
|
|
|
|
|
2014-06-19 20:18:04 +02:00
|
|
|
@SubscribeEvent
|
|
|
|
public void onWorldLoadEvent(WorldEvent.Load event)
|
|
|
|
{
|
2014-07-14 18:04:20 +02:00
|
|
|
if (!hasInitilialized)
|
|
|
|
{
|
|
|
|
DynamicEnergyValueInitThread.initEnergyValueRegistry();
|
|
|
|
hasInitilialized = true;
|
|
|
|
}
|
2014-06-19 20:18:04 +02:00
|
|
|
}
|
|
|
|
}
|