"Empty" side effects is default, and default does "apply" side effects

This commit is contained in:
dordsor21 2022-05-10 17:28:09 +01:00
parent b237ddf076
commit 059c5f046d
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -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) {