mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Fix a few global configuration options being unavailable
This commit is contained in:
parent
e18cef3e72
commit
d9e7de59e9
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
+
|
+
|
||||||
|
|
|
@ -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
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
+
|
+
|
||||||
|
|
|
@ -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);
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue