diff --git a/src/main/java/com/github/halotroop/litecraft/Litecraft.java b/src/main/java/com/github/halotroop/litecraft/Litecraft.java index ce0a96c..59bb855 100644 --- a/src/main/java/com/github/halotroop/litecraft/Litecraft.java +++ b/src/main/java/com/github/halotroop/litecraft/Litecraft.java @@ -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); diff --git a/src/main/java/com/github/halotroop/litecraft/world/World.java b/src/main/java/com/github/halotroop/litecraft/world/World.java index 39a2743..bfb7e4b 100644 --- a/src/main/java/com/github/halotroop/litecraft/world/World.java +++ b/src/main/java/com/github/halotroop/litecraft/world/World.java @@ -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<>();