mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-03-02 11:31:13 +01:00
Use Forge default resolver when result is undefined (#3390)
This commit is contained in:
parent
62a8891b48
commit
a368509520
@ -115,7 +115,9 @@ public class ForgePermissionHandler implements IPermissionHandler {
|
||||
if (node.getType() == PermissionTypes.BOOLEAN) {
|
||||
PermissionCache cache = user.getCachedData().getPermissionData(queryOptions);
|
||||
Tristate value = cache.checkPermission(node.getNodeName(), CheckOrigin.PLATFORM_API_HAS_PERMISSION).result();
|
||||
return (T) (Boolean) value.asBoolean();
|
||||
if (value != Tristate.UNDEFINED) {
|
||||
return (T) (Boolean) value.asBoolean();
|
||||
}
|
||||
}
|
||||
|
||||
if (node.getType() == PermissionTypes.INTEGER) {
|
||||
|
Loading…
Reference in New Issue
Block a user