remove unneccesary code, and do stuff tm

pull/12/head
valoeghese 2020-03-02 20:47:47 +13:00
parent d1492f152b
commit 0361b799a8
2 changed files with 2 additions and 1 deletions

View File

@ -58,8 +58,10 @@ public class Litecraft extends Game
if (this.world != null)
{
System.out.println("Saving chunks...");
long time = System.currentTimeMillis();
this.world.unloadAllChunks();
this.getSave().saveGlobalData(this.world.getSeed(), this.player);
System.out.println("Saved world in " + (System.currentTimeMillis() - time) + " milliseconds");
}
engine.cleanup();
System.exit(0);

View File

@ -40,7 +40,6 @@ public class World implements BlockAccess, WorldGenConstants
public World(long seed, int renderSize, Dimension<?> dim, LitecraftSave save)
{
this.threadPool = new ForkJoinPool(4, ForkJoinPool.defaultForkJoinWorkerThreadFactory, null, true);
this.updateLoadedChunks(0, 0, 0);
this.dummy = new BlockInstance(Blocks.ANDESITE, new Vector3f(0, 0, 0));
this.dummy.setVisible(false);
this.chunks = new Long2ObjectArrayMap<>();