Remove local method syntax

This commit is contained in:
ReinforceZwei 2020-07-24 10:51:35 +08:00 committed by ORelio
parent 1960235968
commit 4324fe8f15

View file

@ -332,7 +332,7 @@ namespace MinecraftClient.ChatBots
string value = line.Substring(key.Length + 1);
switch (section)
{
case "recipe": parseRecipe(key, value); break;
case "recipe": parseRecipe(key, value, lastRecipe); 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)
{
@ -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"))
{
@ -442,7 +445,6 @@ namespace MinecraftClient.ChatBots
}
}
#endregion
}
#endregion