diff --git a/MinecraftClient/ChatBots/AntiAFK.cs b/MinecraftClient/ChatBots/AntiAFK.cs index 63eac4ba..d078aae5 100644 --- a/MinecraftClient/ChatBots/AntiAFK.cs +++ b/MinecraftClient/ChatBots/AntiAFK.cs @@ -42,6 +42,14 @@ namespace MinecraftClient.ChatBots useTerrainHandling = false; LogToConsole(Translations.TryGet("bot.antiafk.not_using_terrain_handling")); } + else + { + if (walkRange <= 0) + { + walkRange = 5; + LogToConsole(Translations.TryGet("bot.antiafk.invalid_walk_range")); + } + } } if (string.IsNullOrEmpty(pingparam)) diff --git a/MinecraftClient/Resources/lang/en.ini b/MinecraftClient/Resources/lang/en.ini index 6962f7bb..9e06fb0e 100644 --- a/MinecraftClient/Resources/lang/en.ini +++ b/MinecraftClient/Resources/lang/en.ini @@ -433,6 +433,7 @@ bot.antiafk.invalid_range_partial=Invalid time range provided, using the first p bot.antiafk.invalid_range=Invalid time range provided, using default time of 600! bot.antiafk.invalid_value=Invalid time provided, using default time of 600! bot.antiafk.swapping=The time range begins with a bigger value, swapped them around. +bot.antiafk.invalid_walk_range=Invalid walk range provided, must be a positive integer greater than 0, using default value of 5! # AutoAttack bot.autoAttack.mode=Unknown attack mode: {0}. Using single mode as default.