9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-23 09:09:15 +00:00

Optimizations

This commit is contained in:
Daniel Mills
2020-10-13 04:27:25 -04:00
parent 80b1374a61
commit 74e59fa47b
3 changed files with 61 additions and 26 deletions

View File

@@ -41,15 +41,15 @@ public class IrisSettings
@DontObfuscate
@Desc("Useful information when creating iris worlds. Shows object loads & more.")
public boolean verbose = false;
@DontObfuscate
@Desc("System Effects")
public boolean systemEffects = true;
@DontObfuscate
@Desc("System Spawn Overrides")
public boolean systemEntitySpawnOverrides = true;
@DontObfuscate
@Desc("System Spawn Initials")
public boolean systemEntityInitialSpawns = true;
@@ -96,6 +96,11 @@ public class IrisSettings
public static IrisSettings get()
{
if(settings != null)
{
return settings;
}
IrisSettings defaults = new IrisSettings();
JSONObject def = new JSONObject(new Gson().toJson(defaults));
if(settings == null)
@@ -157,7 +162,7 @@ public class IrisSettings
catch(JSONException | IOException e)
{
e.printStackTrace();
//noinspection ResultOfMethodCallIgnored
// noinspection ResultOfMethodCallIgnored
s.delete();
}
}