Accomodate Bukkit-like Servers not sending Command Args (#8582)

Note to modded server devs:
Please, please, please implement full compatibility with [Brigadier](https://github.com/Mojang/Brigadier) instead of hacking around it.
This commit is contained in:
DaemonUmbra authored and GitHub committed 2022-05-03 18:21:53 +01:00
1 parent a237a39d52
commit da82705e86
1 file changed
+1 -1
@@ -288,7 +288,7 @@ public class ClientCommandHandler
}
catch (CommandSyntaxException syntax)// Usually thrown by the CommandDispatcher
{
if (syntax.getType() == CommandSyntaxException.BUILT_IN_EXCEPTIONS.dispatcherUnknownCommand())
if (syntax.getType() == CommandSyntaxException.BUILT_IN_EXCEPTIONS.dispatcherUnknownCommand() || syntax.getType() == CommandSyntaxException.BUILT_IN_EXCEPTIONS.dispatcherUnknownArgument())
{
// in case of unknown command, let the server try and handle it
return false;