From 232a0ea12f74f4b2a9fa6508d7eac5fd13b39a4d Mon Sep 17 00:00:00 2001
From: Phillip Glanz
Date: Sun, 2 Apr 2023 23:08:13 +0200
Subject: [PATCH] Fix regen command
---
.../adapter/impl/fawe/v1_19_R3/regen/PaperweightRegen.java | 5 ++++-
.../fastasyncworldedit/bukkit/listener/ChunkListener.java | 3 ---
.../core/queue/implementation/QueueHandler.java | 5 ++---
3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/worldedit-bukkit/folia-adapters/adapter-1_19_4/src/main/java/com/sk89q/worldedit/folia/adapter/impl/fawe/v1_19_R3/regen/PaperweightRegen.java b/worldedit-bukkit/folia-adapters/adapter-1_19_4/src/main/java/com/sk89q/worldedit/folia/adapter/impl/fawe/v1_19_R3/regen/PaperweightRegen.java
index bc4b5b8b4..5fd41e7d9 100644
--- a/worldedit-bukkit/folia-adapters/adapter-1_19_4/src/main/java/com/sk89q/worldedit/folia/adapter/impl/fawe/v1_19_R3/regen/PaperweightRegen.java
+++ b/worldedit-bukkit/folia-adapters/adapter-1_19_4/src/main/java/com/sk89q/worldedit/folia/adapter/impl/fawe/v1_19_R3/regen/PaperweightRegen.java
@@ -127,12 +127,15 @@ public class PaperweightRegen extends Regeneratorplatform().getPlugin();
diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/QueueHandler.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/QueueHandler.java
index 5008301e8..992c11716 100644
--- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/QueueHandler.java
+++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/queue/implementation/QueueHandler.java
@@ -89,9 +89,8 @@ public abstract class QueueHandler implements Trimable, Runnable {
private long last;
private long allocate = 50;
- protected QueueHandler() {
- // TODO make main thread independent
- // TaskManager.taskManager().repeat(this, 1);
+ public QueueHandler() {
+ TaskManager.taskManager().repeat(this, 1);
}
@Override