mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user