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

Optimized dragon respawn (#29)

This commit is contained in:
violetc
2023-06-27 13:34:09 +08:00
parent 9064ce41ce
commit 4e00b397a7
2 changed files with 152 additions and 2 deletions

View File

@@ -128,10 +128,10 @@ index a53514f2c510b29f596c361de7bc0b405c27e964..269c7ba0707db4fdc45a70000e0be892
.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..5a93e6f42bcfde75818daad520da01cf5de6cc47
index 0000000000000000000000000000000000000000..8a62ffa48472a3d3ef019154379bf2a5a30ce78c
--- /dev/null
+++ b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
@@ -0,0 +1,752 @@
@@ -0,0 +1,757 @@
+package top.leavesmc.leaves;
+
+import com.destroystokyo.paper.util.SneakyThrow;
@@ -709,6 +709,11 @@ index 0000000000000000000000000000000000000000..5a93e6f42bcfde75818daad520da01cf
+ creativeNoClip = getBoolean("settings.modify.creative-no-clip", creativeNoClip);
+ }
+
+ public static boolean optimizedDragonRespawn = false;
+ private static void optimizedDragonRespawn() {
+ optimizedDragonRespawn = getBoolean("settings.performance.optimized-dragon-respawn", optimizedDragonRespawn);
+ }
+
+ public static final class WorldConfig {
+
+ public final String worldName;