mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-27 23:55:36 +00:00
Fix PermissionHolder#setNode with accumulate temporary modifier (#1839)
This commit is contained in:
1 file changed
+1
@@ -441,6 +441,7 @@ public abstract class PermissionHolder {
|
||||
// Create a new Node with the same properties, but add the expiry dates together
|
||||
long newExpiry = otherMatch.getExpiry().plus(Duration.between(Instant.now(), node.getExpiry())).getEpochSecond();
|
||||
newNode = node.toBuilder().expiry(newExpiry).build();
|
||||
break;
|
||||
}
|
||||
case REPLACE_EXISTING_IF_DURATION_LONGER: {
|
||||
// Only replace if the new expiry time is greater than the old one.
|
||||
|
||||
Reference in new issue
Block a user