From d91a971e85c18def3d2c6addadcd0edf3d58f6e7 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 2 Nov 2021 20:53:14 +0000 Subject: [PATCH] Allow extent to be used down the pipeline in BlockReplace - It's quite likely for this to be required given BlockReplace use in replacenear - Fixes #1390 --- .../java/com/sk89q/worldedit/function/block/BlockReplace.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/function/block/BlockReplace.java b/worldedit-core/src/main/java/com/sk89q/worldedit/function/block/BlockReplace.java index 84f98d430..f8bec5fcb 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/function/block/BlockReplace.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/function/block/BlockReplace.java @@ -50,7 +50,9 @@ public class BlockReplace implements RegionFunction { @Override public boolean apply(BlockVector3 position) throws WorldEditException { - return extent.setBlock(position, pattern.applyBlock(position)); + //FAWE start - allow extent to be used down the pipeline + return pattern.apply(extent, position, position); + //FAWE end } }