Fix inherited permissions not applying on Sponge

This commit is contained in:
Luck 2016-09-04 16:25:10 +01:00
parent 23df8a2df8
commit ed85eee36c
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -130,7 +130,7 @@ public class LuckPermsSubject implements Subject {
context.put(c.getKey(), c.getValue()); context.put(c.getKey(), c.getValue());
} }
me.lucko.luckperms.api.Tristate t = enduringData.getHolder().hasPermission(new me.lucko.luckperms.utils.Node.Builder(node).withExtraContext(context).build()); me.lucko.luckperms.api.Tristate t = enduringData.getHolder().inheritsPermission(new me.lucko.luckperms.utils.Node.Builder(node).withExtraContext(context).build());
if (t == me.lucko.luckperms.api.Tristate.UNDEFINED) { if (t == me.lucko.luckperms.api.Tristate.UNDEFINED) {
return Tristate.UNDEFINED; return Tristate.UNDEFINED;
} }