This commit is contained in:
kawaiizenbo 2023-03-08 21:05:01 -07:00
parent 3de1c7130a
commit e5b783553b
10 changed files with 56 additions and 31 deletions

View file

@ -50,7 +50,6 @@ public abstract class ChatInputSuggestorMixin
if (reader.canRead(length) && reader.getString().startsWith(prefix, reader.getCursor())) {
reader.setCursor(reader.getCursor() + length);
assert this.client.player != null;
// Pretty much copy&paste from the refresh method
CommandDispatcher<CommandSource> commandDispatcher = CommandManager.get().getDispatcher();
if (this.parse == null) {
this.parse = commandDispatcher.parse(reader, CommandManager.get().getCommandSource());