[Refactor] Removed camelCased package AGAIN @hYdos

pull/12/head
Caroline Bell 2020-02-29 03:11:09 -08:00
parent 8c12d200b8
commit 464511dd95
7 changed files with 18 additions and 18 deletions

View File

@ -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);

View File

@ -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)

View File

@ -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.*;

View File

@ -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
{

View File

@ -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

View File

@ -1,4 +1,4 @@
package com.github.hydos.multiThreading;
package com.github.hydos.multithreading;
public abstract class GingerThread extends Thread
{

View File

@ -1,4 +1,4 @@
package com.github.hydos.multiThreading;
package com.github.hydos.multithreading;
import java.util.*;