Fixed Bug: #0255 - Making a new world with AE2 loaded causes it to not save chunks.

This commit is contained in:
AlgorithmX2 2014-03-29 19:23:11 -05:00
parent 794177b8d2
commit c82663c1ac
2 changed files with 8 additions and 8 deletions

View file

@ -24,6 +24,7 @@ import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerAboutToStartEvent;
import cpw.mods.fml.common.event.FMLServerStartingEvent;
import cpw.mods.fml.common.event.FMLServerStoppingEvent;
import cpw.mods.fml.common.network.NetworkRegistry;
@ -181,9 +182,14 @@ public class AppEng
}
@EventHandler
public void serverStarting(FMLServerStartingEvent evt)
public void serverStarting(FMLServerAboutToStartEvent evt)
{
WorldSettings.getInstance().init();
}
@EventHandler
public void serverStarting(FMLServerStartingEvent evt)
{
evt.registerServerCommand( new AECommand( evt.getServer() ) );
}

View file

@ -1,7 +1,6 @@
package appeng.hooks;
import java.util.Random;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import net.minecraft.world.World;
@ -46,7 +45,6 @@ final public class MeteoriteWorldGen implements IWorldGenerator
try
{
future.get();
if ( obj.distance > AEConfig.instance.minMeteoriteDistanceSq )
@ -67,11 +65,7 @@ final public class MeteoriteWorldGen implements IWorldGenerator
}
}
catch (InterruptedException e)
{
AELog.error( e );
}
catch (ExecutionException e)
catch (Throwable e)
{
AELog.error( e );
}