equivalent-exchange-3/src/main/java/com/pahimar/ee3/handler/WorldEventHandler.java

21 lines
536 B
Java
Raw Normal View History

package com.pahimar.ee3.handler;
import com.pahimar.ee3.exchange.DynamicEnergyValueInitThread;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.event.world.WorldEvent;
public class WorldEventHandler
{
private static boolean hasInitilialized = false;
@SubscribeEvent
public void onWorldLoadEvent(WorldEvent.Load event)
{
if (!hasInitilialized)
{
DynamicEnergyValueInitThread.initEnergyValueRegistry();
hasInitilialized = true;
}
}
}