mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 03:25:19 +01:00
Fix PermissionHolder#setNode with accumulate temporary modifier (#1839)
This commit is contained in:
parent
cc5d7ea873
commit
8906e4c4fc
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user