mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2026-01-04 15:41:40 +00:00
Update Kaiiju's async pathfinding
This commit is contained in:
@@ -430,22 +430,22 @@ index b77a84a5ab85839e37aee24da0f4356be3f478e2..75b53f1f237472f55d883a22cc8289c4
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/org/dreeam/leaf/LeafConfig.java b/src/main/java/org/dreeam/leaf/LeafConfig.java
|
||||
index 2bfc30aef604645a29660f599df2b60e0252bec7..add6a325ba387b20da8f19a877f93ddb2bcabfa3 100644
|
||||
index c9b6355ba844de3157c9144e45ebb921ddcfd02e..3de7b436f63195083bf7bf6ced28197202090d38 100644
|
||||
--- a/src/main/java/org/dreeam/leaf/LeafConfig.java
|
||||
+++ b/src/main/java/org/dreeam/leaf/LeafConfig.java
|
||||
@@ -198,6 +198,8 @@ public class LeafConfig {
|
||||
public static boolean useSpigotItemMergingMechanism = true;
|
||||
public static boolean enableAsyncPathfinding = true;
|
||||
public static boolean enableAsyncPathfindingInitialized;
|
||||
@@ -202,6 +202,8 @@ public class LeafConfig {
|
||||
public static int asyncPathfindingMaxThreads = 0;
|
||||
public static int asyncPathfindingKeepalive = 60;
|
||||
public static int asyncPathfindingQueueCapacity = 4096;
|
||||
+ public static boolean enableAsyncEntityTracker = false;
|
||||
+ public static boolean enableAsyncEntityTrackerInitialized;
|
||||
private static void performance() {
|
||||
boolean asyncMobSpawning = getBoolean("performance.enable-async-mob-spawning", enableAsyncMobSpawning,
|
||||
"Whether or not asynchronous mob spawning should be enabled.",
|
||||
@@ -254,6 +256,13 @@ public class LeafConfig {
|
||||
enableAsyncPathfindingInitialized = true;
|
||||
enableAsyncPathfinding = asyncPathfinding;
|
||||
}
|
||||
@@ -263,6 +265,13 @@ public class LeafConfig {
|
||||
asyncPathfindingMaxThreads = 0;
|
||||
else
|
||||
Bukkit.getLogger().log(Level.INFO, "Using " + asyncPathfindingMaxThreads + " threads for Async Pathfinding");
|
||||
+ boolean asyncEntityTracker = getBoolean("performance.enable-async-entity-tracker", enableAsyncEntityTracker,
|
||||
+ "Whether or not async entity tracking should be enabled.",
|
||||
+ "You may encounter issues with NPCs.");
|
||||
|
||||
Reference in New Issue
Block a user