mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Remove local method syntax
This commit is contained in:
parent
1960235968
commit
4324fe8f15
1 changed files with 74 additions and 72 deletions
|
|
@ -332,7 +332,7 @@ namespace MinecraftClient.ChatBots
|
||||||
string value = line.Substring(key.Length + 1);
|
string value = line.Substring(key.Length + 1);
|
||||||
switch (section)
|
switch (section)
|
||||||
{
|
{
|
||||||
case "recipe": parseRecipe(key, value); break;
|
case "recipe": parseRecipe(key, value, lastRecipe); break;
|
||||||
case "autocraft": parseMain(key, value); break;
|
case "autocraft": parseMain(key, value); break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -355,9 +355,12 @@ namespace MinecraftClient.ChatBots
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Local method for parsing different section of config
|
|
||||||
|
|
||||||
void parseMain(string key, string value)
|
}
|
||||||
|
|
||||||
|
#region Method for parsing different section of config
|
||||||
|
|
||||||
|
private void parseMain(string key, string value)
|
||||||
{
|
{
|
||||||
switch (key)
|
switch (key)
|
||||||
{
|
{
|
||||||
|
|
@ -380,7 +383,7 @@ namespace MinecraftClient.ChatBots
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void parseRecipe(string key, string value)
|
private void parseRecipe(string key, string value, string lastRecipe)
|
||||||
{
|
{
|
||||||
if (key.StartsWith("slot"))
|
if (key.StartsWith("slot"))
|
||||||
{
|
{
|
||||||
|
|
@ -442,7 +445,6 @@ namespace MinecraftClient.ChatBots
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue