From 23ca345a2e73badb2269984d5ea8ffda8f29c9bb Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 21 Sep 2021 14:51:39 +0100 Subject: [PATCH] Don't setextent twice in replace --- .../main/java/com/sk89q/worldedit/command/RegionCommands.java | 3 --- 1 file changed, 3 deletions(-) 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 ef5aac33f..ea2635a6f 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 @@ -325,9 +325,6 @@ public class RegionCommands { ((AbstractExtentMask) from).setExtent(editSession); //FAWE end } - if (from instanceof AbstractExtentMask) { - ((AbstractExtentMask) from).setExtent(editSession); - } int affected = editSession.replaceBlocks(region, from, to); actor.print(Caption.of("worldedit.replace.replaced", TextComponent.of(affected))); return affected;