13
0
geforkt von Mirrors/Paper

Fix issue from previous commit in SimpleHelpMap

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2023-06-12 20:30:16 +10:00
Ursprung ff78bf30f6
Commit cad3899462

Datei anzeigen

@ -224,7 +224,7 @@ public class SimpleHelpMap implements HelpMap {
@Override @Override
public void registerHelpTopicFactory(Class commandClass, HelpTopicFactory factory) { public void registerHelpTopicFactory(Class commandClass, HelpTopicFactory factory) {
Preconditions.checkArgument(Command.class.isAssignableFrom(commandClass) && CommandExecutor.class.isAssignableFrom(commandClass), "commandClass (%s) must implement either Command or CommandExecutor", commandClass.getName()); Preconditions.checkArgument(Command.class.isAssignableFrom(commandClass) || CommandExecutor.class.isAssignableFrom(commandClass), "commandClass (%s) must implement either Command or CommandExecutor", commandClass.getName());
topicFactoryMap.put(commandClass, factory); topicFactoryMap.put(commandClass, factory);
} }