mirror of
https://github.com/PaperMC/Folia.git
synced 2024-11-22 12:05:12 +01:00
Fix zero radius tasks being recognized as infinite
Fixes parallelism loss from spawn entity chunk status
This commit is contained in:
parent
0a11f6aa1f
commit
518b2d5dec
@ -0,0 +1,20 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
|
||||||
|
Date: Sun, 12 Mar 2023 00:51:29 -0800
|
||||||
|
Subject: [PATCH] fixup! Increase parallelism for neighbour writing chunk
|
||||||
|
statuses
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/io/papermc/paper/chunk/system/scheduling/queue/RadiusAwarePrioritisedExecutor.java b/src/main/java/io/papermc/paper/chunk/system/scheduling/queue/RadiusAwarePrioritisedExecutor.java
|
||||||
|
index 1c8e05d5dde630fdee01900823d26c293f375abc..3272f73013ea7d4efdd0ae2903925cc543be7075 100644
|
||||||
|
--- a/src/main/java/io/papermc/paper/chunk/system/scheduling/queue/RadiusAwarePrioritisedExecutor.java
|
||||||
|
+++ b/src/main/java/io/papermc/paper/chunk/system/scheduling/queue/RadiusAwarePrioritisedExecutor.java
|
||||||
|
@@ -428,7 +428,7 @@ public class RadiusAwarePrioritisedExecutor {
|
||||||
|
}
|
||||||
|
|
||||||
|
private boolean isFiniteRadius() {
|
||||||
|
- return this.radius > 0;
|
||||||
|
+ return this.radius >= 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
private PrioritisedExecutor.PrioritisedTask pushTask(final PrioritisedExecutor executor) {
|
Loading…
Reference in New Issue
Block a user