[Refactor] Removed camelCased package AGAIN @hYdos
parent
8c12d200b8
commit
464511dd95
|
@ -114,15 +114,7 @@ public class Litecraft extends Game
|
|||
{
|
||||
System.out.println("Saving chunks...");
|
||||
this.world.unloadAllChunks();
|
||||
try
|
||||
{
|
||||
this.getSave().saveGlobalData(this.world.getSeed(), this.player);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
System.err.println("A critical error occurred while trying to save world data!");
|
||||
e.printStackTrace();
|
||||
}
|
||||
this.getSave().saveGlobalData(this.world.getSeed(), this.player);
|
||||
}
|
||||
ginger3D.cleanup();
|
||||
System.exit(0);
|
||||
|
|
|
@ -125,11 +125,19 @@ public final class LitecraftSave
|
|||
}
|
||||
}
|
||||
|
||||
public void saveGlobalData(long seed, Player player) throws IOException
|
||||
public void saveGlobalData(long seed, Player player)
|
||||
{
|
||||
File globalDataFile = new File(this.file.getPath() + "/global_data.sod");
|
||||
globalDataFile.createNewFile(); // create world file if it doesn't exist.
|
||||
writeGlobalData(globalDataFile, seed, player.getPosition());
|
||||
try
|
||||
{
|
||||
File globalDataFile = new File(this.file.getPath() + "/global_data.sod");
|
||||
globalDataFile.createNewFile(); // create world file if it doesn't exist.
|
||||
writeGlobalData(globalDataFile, seed, player.getPosition());
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
System.err.println("A critical error occurred while trying to save world data!");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private void writeGlobalData(File globalDataFile, long seed, Vector3f playerPos)
|
||||
|
|
|
@ -3,7 +3,7 @@ package com.github.halotroop.litecraft.world;
|
|||
import java.util.*;
|
||||
import java.util.function.LongConsumer;
|
||||
|
||||
import com.github.hydos.multiThreading.GingerThread;
|
||||
import com.github.hydos.multithreading.GingerThread;
|
||||
|
||||
import it.unimi.dsi.fastutil.longs.*;
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import com.github.hydos.ginger.engine.render.MasterRenderer;
|
|||
import com.github.hydos.ginger.engine.render.tools.MousePicker;
|
||||
import com.github.hydos.ginger.engine.screen.Screen;
|
||||
import com.github.hydos.ginger.engine.utils.Loader;
|
||||
import com.github.hydos.multiThreading.GingerThreading;
|
||||
import com.github.hydos.multithreading.GingerThreading;
|
||||
|
||||
public class Ginger
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ import com.github.hydos.ginger.engine.font.GUIText;
|
|||
import com.github.hydos.ginger.engine.postprocessing.Fbo;
|
||||
import com.github.hydos.ginger.engine.render.MasterRenderer;
|
||||
import com.github.hydos.ginger.engine.screen.Screen;
|
||||
import com.github.hydos.multiThreading.GingerThreading;
|
||||
import com.github.hydos.multithreading.GingerThreading;
|
||||
|
||||
/** Used if a game wants to access engine variables safely */
|
||||
public class GingerRegister
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.github.hydos.multiThreading;
|
||||
package com.github.hydos.multithreading;
|
||||
|
||||
public abstract class GingerThread extends Thread
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
package com.github.hydos.multiThreading;
|
||||
package com.github.hydos.multithreading;
|
||||
|
||||
import java.util.*;
|
||||
|
Loading…
Reference in New Issue