9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2026-01-04 15:41:31 +00:00

Skip unnecessary mob spawning computations

This commit is contained in:
violetc
2023-07-21 11:35:05 +08:00
parent 213617658f
commit 7c3839f990
2 changed files with 102 additions and 2 deletions

View File

@@ -128,10 +128,10 @@ index 35d2da9d91dcdd89de7c0f4af028fd182376ea8d..d73482fb1e71fe2951e96ae0593de268
.withRequiredArg()
diff --git a/src/main/java/top/leavesmc/leaves/LeavesConfig.java b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..6a0d108652cca434a75144595fb2cd77c9ccae9e
index 0000000000000000000000000000000000000000..5d0cbd5c1036b70a3ae98fc0ab75cdce389ebf1f
--- /dev/null
+++ b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
@@ -0,0 +1,926 @@
@@ -0,0 +1,931 @@
+package top.leavesmc.leaves;
+
+import com.destroystokyo.paper.util.SneakyThrow;
@@ -883,6 +883,11 @@ index 0000000000000000000000000000000000000000..6a0d108652cca434a75144595fb2cd77
+ skipCloningAdvancementCriteria = getBoolean("settings.performance.skip-cloning-advancement-criteria", skipCloningAdvancementCriteria);
+ }
+
+ public static boolean skipUnnecessaryMobSpawningComputations = true;
+ private static void skipUnnecessaryMobSpawningComputations() {
+ skipUnnecessaryMobSpawningComputations = getBoolean("settings.performance.skip-unnecessary-mob-spawning-computations", skipUnnecessaryMobSpawningComputations);
+ }
+
+ public static final class WorldConfig {
+
+ public final String worldName;