mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-08 18:44:44 +00:00
Fix inverted Audience check in PaperAdventureBridge (#4297)
This commit is contained in:
1 parent
8fa4c24492
commit
2dfd387882
1 file changed
+1
-1
@@ -55,7 +55,7 @@ public final class PaperAdventureBridge {
|
||||
Class<?> componentClass = Class.forName(adventurePkg + "text.Component");
|
||||
Class<?> serializerClass = Class.forName(adventurePkg + "text.serializer.gson.GsonComponentSerializer");
|
||||
|
||||
if (CommandSender.class.isAssignableFrom(audienceClass)) {
|
||||
if (!audienceClass.isAssignableFrom(CommandSender.class)) {
|
||||
throw new IllegalStateException("CommandSender does not implement Audience");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user