From a51863c6f006f2a3587e4dd16bf565ed1d229fd3 Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Sat, 27 Aug 2022 16:49:01 +0200 Subject: [PATCH] fix: use proper level data for regen (#1921) --- .../impl/fawe/v1_17_R1_2/regen/PaperweightRegen.java | 9 +++++---- .../impl/fawe/v1_18_R2/regen/PaperweightRegen.java | 5 ++--- .../impl/fawe/v1_19_R1/regen/PaperweightRegen.java | 5 ++--- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/worldedit-bukkit/adapters/adapter-1_17_1/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_17_R1_2/regen/PaperweightRegen.java b/worldedit-bukkit/adapters/adapter-1_17_1/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_17_R1_2/regen/PaperweightRegen.java index 6ea695d8c..3d9694af9 100644 --- a/worldedit-bukkit/adapters/adapter-1_17_1/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_17_R1_2/regen/PaperweightRegen.java +++ b/worldedit-bukkit/adapters/adapter-1_17_1/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_17_R1_2/regen/PaperweightRegen.java @@ -79,6 +79,7 @@ import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.OptionalLong; import java.util.Random; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ConcurrentHashMap; @@ -217,10 +218,10 @@ public class PaperweightRegen extends Regenerator