mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2026-08-15 13:04:36 +00:00
Formatted the code and removed logs from Auto Attack
This commit is contained in:
parent
a4ff7ae438
commit
c6ca3dc13d
117 changed files with 602 additions and 585 deletions
|
|
@ -86,7 +86,7 @@ namespace MinecraftClient.ChatBots
|
|||
public static bool LookForScript(ref string filename)
|
||||
{
|
||||
//Automatically look in subfolders and try to add ".txt" file extension
|
||||
char dir_slash = Path.DirectorySeparatorChar;
|
||||
char dir_slash = Path.DirectorySeparatorChar;
|
||||
string[] files = new string[]
|
||||
{
|
||||
filename,
|
||||
|
|
@ -213,7 +213,7 @@ namespace MinecraftClient.ChatBots
|
|||
.ToLower();
|
||||
processedLine = string.Join("", processedLine.Split(default(string[]), StringSplitOptions.RemoveEmptyEntries));
|
||||
var parts = processedLine.Contains("to") ? processedLine.Split("to") : processedLine.Split("-");
|
||||
|
||||
|
||||
if (parts.Length == 2)
|
||||
{
|
||||
var min = Convert.ToInt32(parts[0]);
|
||||
|
|
@ -224,10 +224,12 @@ namespace MinecraftClient.ChatBots
|
|||
(min, max) = (max, min);
|
||||
LogToConsole(Translations.cmd_wait_random_min_bigger);
|
||||
}
|
||||
|
||||
|
||||
ticks = new Random().Next(min, max);
|
||||
} else ticks = Convert.ToInt32(instruction_line[5..]);
|
||||
} else ticks = Convert.ToInt32(instruction_line[5..]);
|
||||
}
|
||||
else ticks = Convert.ToInt32(instruction_line[5..]);
|
||||
}
|
||||
else ticks = Convert.ToInt32(instruction_line[5..]);
|
||||
}
|
||||
catch { }
|
||||
sleepticks = ticks;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue