Fix AutoCraft still being loaded when inventory handling is disabled

This commit is contained in:
ReinforceZwei 2020-08-17 22:02:00 +08:00 committed by ORelio
parent 33781c5de5
commit ee5199f760

View file

@ -168,6 +168,7 @@ namespace MinecraftClient.ChatBots
{
LogToConsole("Inventory handling is disabled. AutoCraft will be unloaded");
UnloadBot();
return;
}
RegisterChatBotCommand("autocraft", "Auto-crafting ChatBot command", CommandHandler);
RegisterChatBotCommand("ac", "Auto-crafting ChatBot command alias", CommandHandler);