mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
"Empty" side effects is default, and default does "apply" side effects
This commit is contained in:
parent
b237ddf076
commit
059c5f046d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user