From 63ff3c34b3c807d08c6ed5ef759cfcaa8a9a6273 Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 22 Feb 2018 23:38:26 +0000 Subject: [PATCH] Fix default assignment expressions checking temporary permissions (#783) --- .../luckperms/common/assignments/AssignmentExpression.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/assignments/AssignmentExpression.java b/common/src/main/java/me/lucko/luckperms/common/assignments/AssignmentExpression.java index d5453033..9719efff 100644 --- a/common/src/main/java/me/lucko/luckperms/common/assignments/AssignmentExpression.java +++ b/common/src/main/java/me/lucko/luckperms/common/assignments/AssignmentExpression.java @@ -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 checker = node -> holder.hasPermission(node) == tristate; + Predicate 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("|", "||");