mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +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)
|
.filter(entry -> entry.getValue() != SideEffect.State.OFF)
|
||||||
.map(Map.Entry::getKey)
|
.map(Map.Entry::getKey)
|
||||||
.collect(Collectors.toSet());
|
.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) {
|
public SideEffectSet with(SideEffect sideEffect, SideEffect.State state) {
|
||||||
|
Loading…
Reference in New Issue
Block a user