We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 014bec5 commit 0f5e07bCopy full SHA for 0f5e07b
common/src/main/java/net/william278/husktowns/claim/Rules.java
@@ -106,14 +106,11 @@ public boolean hasFlagSet(@NotNull Flag flag) {
106
public void setFlag(@NotNull Flag flag, boolean value) {
107
if (flags.containsKey(flag.getName())) {
108
flags.replace(flag.getName(), value);
109
- if (calculatedFlags != null) {
110
- calculatedFlags.replace(flag, value);
111
- }
112
} else {
113
flags.put(flag.getName(), value);
114
115
- calculatedFlags.put(flag, value);
116
+ }
+ if (calculatedFlags != null) {
+ calculatedFlags.put(flag, value);
117
}
118
119
0 commit comments