From ea5a05d7703a739880d931ba944a37269f060cbf Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 20 May 2020 18:21:49 +0100 Subject: [PATCH] Fix incorrectly reading node value from the value field when reading from the flatfile meta section (#2312) --- .../storage/implementation/file/AbstractConfigurateStorage.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/file/AbstractConfigurateStorage.java b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/file/AbstractConfigurateStorage.java index e725ed83c..122c2b20f 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/file/AbstractConfigurateStorage.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/file/AbstractConfigurateStorage.java @@ -474,13 +474,11 @@ public abstract class AbstractConfigurateStorage implements StorageImplementatio } private static Node readMetaAttributes(ConfigurationNode attributes, Function> 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();