From a063f7664df4106fa95b1f89d60236aecb89d9ca Mon Sep 17 00:00:00 2001 From: Luck Date: Fri, 2 Dec 2016 17:26:38 +0000 Subject: [PATCH] Fix #54 - getPermissionValue not checking default user --- .../lucko/luckperms/sponge/calculators/DefaultsProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sponge/src/main/java/me/lucko/luckperms/sponge/calculators/DefaultsProcessor.java b/sponge/src/main/java/me/lucko/luckperms/sponge/calculators/DefaultsProcessor.java index 4b4acdb9..17e6a4ef 100644 --- a/sponge/src/main/java/me/lucko/luckperms/sponge/calculators/DefaultsProcessor.java +++ b/sponge/src/main/java/me/lucko/luckperms/sponge/calculators/DefaultsProcessor.java @@ -42,8 +42,8 @@ public class DefaultsProcessor implements PermissionProcessor { return t; } - Tristate t2 = service.getDefaults().getPermissionValue(contexts, permission); - if (t2 != Tristate.UNDEFINED) { + t = service.getDefaults().getPermissionValue(contexts, permission); + if (t != Tristate.UNDEFINED) { return t; }