mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Fixed incorrect generic in PermissionAPI (#8317)
This commit is contained in:
1 parent
2f5f696b68
commit
0320c185b5
2 files changed
+3
-3
No files matched your search
@@ -77,7 +77,7 @@ public final class PermissionAPI
|
||||
* PermissionNodes default handler.
|
||||
* @throws UnregisteredPermissionException when the PermissionNode wasn't registered properly
|
||||
*/
|
||||
public static <T> T getPermission(ServerPlayer player, PermissionNode<T> node, PermissionDynamicContext<? extends StringRepresentable>... context)
|
||||
public static <T> T getPermission(ServerPlayer player, PermissionNode<T> node, PermissionDynamicContext<?>... context)
|
||||
{
|
||||
if (!activeHandler.getRegisteredNodes().contains(node)) throw new UnregisteredPermissionException(node);
|
||||
return activeHandler.getPermission(player, node, context);
|
||||
@@ -95,7 +95,7 @@ public final class PermissionAPI
|
||||
* PermissionNodes default handler.
|
||||
* @throws UnregisteredPermissionException when the PermissionNode wasn't registered properly
|
||||
*/
|
||||
public static <T> T getOfflinePermission(UUID player, PermissionNode<T> node, PermissionDynamicContext<? extends StringRepresentable>... context)
|
||||
public static <T> T getOfflinePermission(UUID player, PermissionNode<T> node, PermissionDynamicContext<?>... context)
|
||||
{
|
||||
if (!activeHandler.getRegisteredNodes().contains(node)) throw new UnregisteredPermissionException(node);
|
||||
return activeHandler.getOfflinePermission(player, node, context);
|
||||
|
||||
Reference in new issue
Block a user