mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-02 19:02:33 +02:00
Use Forge default resolver when result is undefined (#3390)
This commit is contained in:
@@ -115,8 +115,10 @@ 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();
|
||||
if (value != Tristate.UNDEFINED) {
|
||||
return (T) (Boolean) value.asBoolean();
|
||||
}
|
||||
}
|
||||
|
||||
if (node.getType() == PermissionTypes.INTEGER) {
|
||||
MetaCache cache = user.getCachedData().getMetaData(queryOptions);
|
||||
|
Reference in New Issue
Block a user