From 059c5f046d60ba8792bfbd581a4ccfc9ca167801 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 10 May 2022 17:28:09 +0100 Subject: [PATCH] "Empty" side effects is default, and default does "apply" side effects --- .../src/main/java/com/sk89q/worldedit/util/SideEffectSet.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/util/SideEffectSet.java b/worldedit-core/src/main/java/com/sk89q/worldedit/util/SideEffectSet.java index 6fdc61f08..2aa3bcea5 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/util/SideEffectSet.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/util/SideEffectSet.java @@ -56,7 +56,9 @@ public class SideEffectSet { .filter(entry -> entry.getValue() != SideEffect.State.OFF) .map(Map.Entry::getKey) .collect(Collectors.toSet()); - appliesAny = !appliedSideEffects.isEmpty(); + //FAWE start + appliesAny = sideEffects.isEmpty() || !appliedSideEffects.isEmpty(); // Empty side effects implies default + //FAWE end } public SideEffectSet with(SideEffect sideEffect, SideEffect.State state) {