9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-19 15:09:25 +00:00

Add comment for cache minecart collision config

This commit is contained in:
Dreeam
2023-10-24 13:01:00 -04:00
parent 4ecaf97770
commit cee1175c2d
2 changed files with 7 additions and 5 deletions

View File

@@ -63,7 +63,7 @@ index faf449dfb4f95a300796db46833f3b6a51cb961b..847bf9edd3f3dbd5c9fd4de4973ac066
while (iterator1.hasNext()) {
Entity entity1 = (Entity) iterator1.next();
diff --git a/src/main/java/org/dreeam/leaf/LeafConfig.java b/src/main/java/org/dreeam/leaf/LeafConfig.java
index 839b4dba682b67f4ea291717d45d973c84cd3612..2253c44a8532fbc984d97a0067267580788d5d5f 100644
index 839b4dba682b67f4ea291717d45d973c84cd3612..c994424d11747484f45c0bc76d947b080ce83394 100644
--- a/src/main/java/org/dreeam/leaf/LeafConfig.java
+++ b/src/main/java/org/dreeam/leaf/LeafConfig.java
@@ -188,6 +188,7 @@ public class LeafConfig {
@@ -74,11 +74,13 @@ index 839b4dba682b67f4ea291717d45d973c84cd3612..2253c44a8532fbc984d97a0067267580
private static void performance() {
useSpigotItemMergingMechanism = getBoolean("performance.use-spigot-item-merging-mechanism", useSpigotItemMergingMechanism);
asyncPathfinding = getBoolean("performance.async-pathfinding.enable", asyncPathfinding);
@@ -201,6 +202,7 @@ public class LeafConfig {
@@ -201,6 +202,9 @@ public class LeafConfig {
asyncPathfindingMaxThreads = 0;
else
Bukkit.getLogger().log(Level.INFO, "Using " + asyncPathfindingMaxThreads + " threads for Async Pathfinding");
+ cacheMinecartCollision = getBoolean("performance.cache-minecart-collision", cacheMinecartCollision);
+ cacheMinecartCollision = getBoolean("performance.cache-minecart-collision", cacheMinecartCollision,
+ "Cache the minecart collision result to prevent massive stacked minecart lag the server.",
+ "The known issue: entity can't enter the minecart after enabling this!");
}
public static boolean jadeProtocol = false;

View File

@@ -5,7 +5,7 @@ Subject: [PATCH] Faster Random for xaeroMapServerID generation
diff --git a/src/main/java/org/dreeam/leaf/LeafConfig.java b/src/main/java/org/dreeam/leaf/LeafConfig.java
index 2253c44a8532fbc984d97a0067267580788d5d5f..3b2ed47f3ad717817afbd7d24f0d926a7396337e 100644
index c994424d11747484f45c0bc76d947b080ce83394..7a9f95d0ab3a3e57e8df8c2587d35691fbe90b54 100644
--- a/src/main/java/org/dreeam/leaf/LeafConfig.java
+++ b/src/main/java/org/dreeam/leaf/LeafConfig.java
@@ -1,7 +1,7 @@
@@ -17,7 +17,7 @@ index 2253c44a8532fbc984d97a0067267580788d5d5f..3b2ed47f3ad717817afbd7d24f0d926a
import net.minecraft.server.MinecraftServer;
import org.bukkit.Bukkit;
import org.bukkit.configuration.ConfigurationSection;
@@ -208,7 +208,7 @@ public class LeafConfig {
@@ -210,7 +210,7 @@ public class LeafConfig {
public static boolean jadeProtocol = false;
public static boolean appleskinProtocol = false;
public static boolean xaeroMapProtocol = false;