mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Fix Disabling Asynchronous Chunks
This fix is for the few people who are using such low end systems that asynchronous chunk loading hurts them rather than helping. The previous build made paper crash if you turned off async chunks, and this fixes that issue.
This commit is contained in:
parent
335e39dca1
commit
6ad6ec1ac9
@ -1902,7 +1902,7 @@ index 0000000000..1dfa8abfd8
|
||||
+}
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/io/chunk/ChunkTaskManager.java b/src/main/java/com/destroystokyo/paper/io/chunk/ChunkTaskManager.java
|
||||
new file mode 100644
|
||||
index 0000000000..e8282e9781
|
||||
index 0000000000..ff19d38f82
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/destroystokyo/paper/io/chunk/ChunkTaskManager.java
|
||||
@@ -0,0 +0,0 @@
|
||||
@ -2344,7 +2344,7 @@ index 0000000000..e8282e9781
|
||||
+
|
||||
+ private void raiseTaskPriority(ChunkTask task, int priority) {
|
||||
+ final boolean raised = task.raisePriority(priority);
|
||||
+ if (task.isScheduled() && raised) {
|
||||
+ if (task.isScheduled() && raised && this.workers != null) {
|
||||
+ // only notify if we're in queue to be executed
|
||||
+ if (priority == PrioritizedTaskQueue.HIGHEST_PRIORITY) {
|
||||
+ // was in another queue but became urgent later, add to urgent queue and the previous
|
||||
|
Loading…
Reference in New Issue
Block a user