mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-20 15:29:35 +00:00
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: violetc <58360096+s-yh-china@users.noreply.github.com>
|
|
Date: Wed, 17 Aug 2022 16:54:54 +0800
|
|
Subject: [PATCH] Async Pathfinding
|
|
|
|
This patch is Powered by Pufferfish(https://github.com/pufferfish-gg/Pufferfish)
|
|
But Pufferfish patch was ported downstream from the Petal fork
|
|
|
|
diff --git a/src/main/java/top/leavesmc/leaves/LeavesConfig.java b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
|
|
index 67e85a55e2a58848d0a9a253fd40ae559f7eb532..d0c7d3883723bcc0c4753170ddff766ef908250e 100644
|
|
--- a/src/main/java/top/leavesmc/leaves/LeavesConfig.java
|
|
+++ b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
|
|
@@ -370,7 +370,7 @@ public final class LeavesConfig {
|
|
// only config now
|
|
public static boolean asyncPathfinding = false;
|
|
private static boolean asyncPathfindingLock = false;
|
|
- private static void asyncPathfinding() {
|
|
+ private static void asyncPathfinding() { // void
|
|
if (!asyncPathfindingLock) {
|
|
asyncPathfinding = getBoolean("settings.performance.async-pathfinding", asyncPathfinding);
|
|
asyncPathfindingLock = true;
|