Fix AutoDrop being loaded when inventory handling is disabled

This commit is contained in:
ReinforceZwei 2020-08-17 23:39:07 +08:00 committed by ORelio
parent 6bbb7236e3
commit d8afda34fb

View file

@ -141,6 +141,7 @@ namespace MinecraftClient.ChatBots
{ {
LogToConsole("Inventory handling is disabled. Unloading..."); LogToConsole("Inventory handling is disabled. Unloading...");
UnloadBot(); UnloadBot();
return;
} }
RegisterChatBotCommand("autodrop", "AutoDrop ChatBot command", CommandHandler); RegisterChatBotCommand("autodrop", "AutoDrop ChatBot command", CommandHandler);
RegisterChatBotCommand("ad", "AutoDrop ChatBot command alias", CommandHandler); RegisterChatBotCommand("ad", "AutoDrop ChatBot command alias", CommandHandler);