mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-03-11 06:10:46 +01:00
Fix incorrectly reading node value from the value field when reading from the flatfile meta section (#2312)
This commit is contained in:
parent
ed85ab1bfd
commit
ea5a05d770
@ -474,13 +474,11 @@ public abstract class AbstractConfigurateStorage implements StorageImplementatio
|
||||
}
|
||||
|
||||
private static Node readMetaAttributes(ConfigurationNode attributes, Function<ConfigurationNode, NodeBuilder<?, ?>> permissionFunction) {
|
||||
boolean value = attributes.getNode("value").getBoolean(true);
|
||||
long expiryVal = attributes.getNode("expiry").getLong(0L);
|
||||
Instant expiry = expiryVal == 0L ? null : Instant.ofEpochSecond(expiryVal);
|
||||
ImmutableContextSet context = readContexts(attributes);
|
||||
|
||||
return permissionFunction.apply(attributes)
|
||||
.value(value)
|
||||
.expiry(expiry)
|
||||
.context(context)
|
||||
.build();
|
||||
|
Loading…
Reference in New Issue
Block a user