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

Dieser Commit ist enthalten in:
dordsor21 2022-05-10 17:28:09 +01:00
Ursprung b237ddf076
Commit 059c5f046d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

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