mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Added documentation examples and covered an edge case
This commit is contained in:
parent
fe5f07306d
commit
c5a0409edc
4 changed files with 39 additions and 2 deletions
|
|
@ -218,6 +218,12 @@ namespace MinecraftClient.ChatBots
|
|||
{
|
||||
var min = Convert.ToInt32(parts[0]);
|
||||
var max = Convert.ToInt32(parts[1]);
|
||||
|
||||
if (min > max)
|
||||
{
|
||||
(min, max) = (max, min);
|
||||
LogToConsole(Translations.cmd_wait_random_min_bigger);
|
||||
}
|
||||
|
||||
ticks = new Random().Next(min, max);
|
||||
} else ticks = Convert.ToInt32(instruction_line[5..]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue