Skip to content

Commit

Permalink
Fix bug with call to resetTemporaryConfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
xpple committed Oct 9, 2024
1 parent 549bc79 commit a11a0ac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ public void remove(String config, Object value) throws CommandSyntaxException {
@Override
public void resetTemporaryConfigs() {
for (String config : this.configs.keySet()) {
if (this.annotations.get(config).temporary()) {
Config annotation = this.annotations.get(config);
if (annotation.temporary() && !annotation.readOnly()) {
this.reset(config);
}
}
Expand Down

0 comments on commit a11a0ac

Please sign in to comment.