mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Fix changes not being saved for flatfile bulkupdate operations
This commit is contained in:
parent
af5c859385
commit
7279fdc25f
@ -323,8 +323,10 @@ public abstract class ConfigurateDao extends AbstractDao {
|
||||
.map(bulkUpdate::apply)
|
||||
.filter(Objects::nonNull)
|
||||
.collect(Collectors.toSet());
|
||||
|
||||
if (!nodes.equals(results)) {
|
||||
writeNodes(object, results);
|
||||
saveFile(file, object);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
reportException(file.getName(), e);
|
||||
@ -347,8 +349,10 @@ public abstract class ConfigurateDao extends AbstractDao {
|
||||
.map(bulkUpdate::apply)
|
||||
.filter(Objects::nonNull)
|
||||
.collect(Collectors.toSet());
|
||||
|
||||
if (!nodes.equals(results)) {
|
||||
writeNodes(object, results);
|
||||
saveFile(file, object);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
reportException(file.getName(), e);
|
||||
|
Loading…
Reference in New Issue
Block a user