From d17e3a6555331b8138be2c120eab1e2c59b3a788 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Wed, 19 Jan 2022 13:58:52 +0100 Subject: [PATCH] chore: Add missing Fawe annotations to `//regen` command --- .../main/java/com/sk89q/worldedit/command/RegionCommands.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java index 330b176de..361b0fa02 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/RegionCommands.java @@ -696,8 +696,10 @@ public class RegionCommands { boolean success; try { session.setMask(null); + //FAWE start session.setSourceMask(null); actor.print(Caption.of("fawe.regen.time")); + //FAWE end RegenOptions options = RegenOptions.builder() .seed(seed) .regenBiomes(regenBiomes) @@ -706,7 +708,9 @@ public class RegionCommands { success = world.regenerate(region, editSession, options); } finally { session.setMask(mask); + //FAWE start session.setSourceMask(mask); + //FAWE end } if (success) { actor.print(Caption.of("worldedit.regen.regenerated"));