Fix a few global configuration options being unavailable

This commit is contained in:
Zach Brown 2016-06-04 17:26:11 -05:00
parent e18cef3e72
commit d9e7de59e9
4 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java --- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java +++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
@@ -0,0 +0,0 @@ public class PaperConfig { @@ -0,0 +0,0 @@ public class PaperConfig {
public static void chunkLoadThreads() { private static void chunkLoadThreads() {
minChunkLoadThreads = Math.min(6, getInt("settings.min-chunk-load-threads", 2)); // Keep people from doing stupid things with max of 6 minChunkLoadThreads = Math.min(6, getInt("settings.min-chunk-load-threads", 2)); // Keep people from doing stupid things with max of 6
} }
+ +

View file

@ -14,7 +14,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
} }
+ +
+ public static int minChunkLoadThreads = 2; + public static int minChunkLoadThreads = 2;
+ public static void chunkLoadThreads() { + private static void chunkLoadThreads() {
+ minChunkLoadThreads = Math.min(6, getInt("settings.min-chunk-load-threads", 2)); // Keep people from doing stupid things with max of 6 + minChunkLoadThreads = Math.min(6, getInt("settings.min-chunk-load-threads", 2)); // Keep people from doing stupid things with max of 6
+ } + }
} }

View file

@ -15,7 +15,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java --- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java +++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
@@ -0,0 +0,0 @@ public class PaperConfig { @@ -0,0 +0,0 @@ public class PaperConfig {
public static void healthDeath() { private static void healthDeath() {
setHealthBeforeDeathEvent = getBoolean("settings.set-health-before-death-event", false); setHealthBeforeDeathEvent = getBoolean("settings.set-health-before-death-event", false);
} }
+ +

View file

@ -14,7 +14,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
} }
+ +
+ public static boolean setHealthBeforeDeathEvent = false; + public static boolean setHealthBeforeDeathEvent = false;
+ public static void healthDeath() { + private static void healthDeath() {
+ setHealthBeforeDeathEvent = getBoolean("settings.set-health-before-death-event", false); + setHealthBeforeDeathEvent = getBoolean("settings.set-health-before-death-event", false);
+ } + }
} }