mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-30 12:29:18 +00:00
Cache CubeVoxelShape shape array
This commit is contained in:
@@ -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..1f11a6fbd0dda3e6734f421a3a06276a072c1f43
|
||||
index 0000000000000000000000000000000000000000..98b93ea28c1f89d237bcc0494117c34025889f65
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
|
||||
@@ -0,0 +1,861 @@
|
||||
@@ -0,0 +1,866 @@
|
||||
+package top.leavesmc.leaves;
|
||||
+
|
||||
+import com.destroystokyo.paper.util.SneakyThrow;
|
||||
@@ -818,6 +818,11 @@ index 0000000000000000000000000000000000000000..1f11a6fbd0dda3e6734f421a3a06276a
|
||||
+ skipSecondaryPOISensorIfAbsent = getBoolean("settings.performance.skip-secondary-POI-sensor-if-absent", skipSecondaryPOISensorIfAbsent);
|
||||
+ }
|
||||
+
|
||||
+ public static boolean cacheCubeVoxelShapeShapeArray = true;
|
||||
+ private static void cacheCubeVoxelShapeShapeArray() {
|
||||
+ cacheCubeVoxelShapeShapeArray = getBoolean("settings.performance.cache-CubeVoxelShape-shape-array", cacheCubeVoxelShapeShapeArray);
|
||||
+ }
|
||||
+
|
||||
+ public static final class WorldConfig {
|
||||
+
|
||||
+ public final String worldName;
|
||||
|
||||
Reference in New Issue
Block a user