mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-09-09 20:38:07 +02:00
Fix default assignment expressions checking temporary permissions (#783)
This commit is contained in:
parent
736105cc12
commit
63ff3c34b3
@ -28,6 +28,7 @@ package me.lucko.luckperms.common.assignments;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
|
||||
import me.lucko.luckperms.api.Node;
|
||||
import me.lucko.luckperms.api.StandardNodeEquality;
|
||||
import me.lucko.luckperms.api.Tristate;
|
||||
import me.lucko.luckperms.common.model.PermissionHolder;
|
||||
import me.lucko.luckperms.common.node.LegacyNodeFactory;
|
||||
@ -60,7 +61,7 @@ public class AssignmentExpression {
|
||||
throw new NullPointerException("script engine");
|
||||
}
|
||||
|
||||
Predicate<Node> checker = node -> holder.hasPermission(node) == tristate;
|
||||
Predicate<Node> checker = node -> holder.hasPermission(node, StandardNodeEquality.IGNORE_VALUE_OR_IF_TEMPORARY) == tristate;
|
||||
|
||||
String exp = this.expression.stream().map(t -> t.forExpression(checker)).collect(Collectors.joining())
|
||||
.replace("&", "&&").replace("|", "||");
|
||||
|
Loading…
Reference in New Issue
Block a user