mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Fix compile errors (see #1145)
This commit is contained in:
parent
4324fe8f15
commit
31787f8383
1 changed files with 4 additions and 2 deletions
|
|
@ -392,7 +392,8 @@ namespace MinecraftClient.ChatBots
|
||||||
{
|
{
|
||||||
if (recipes.ContainsKey(lastRecipe))
|
if (recipes.ContainsKey(lastRecipe))
|
||||||
{
|
{
|
||||||
if (Enum.TryParse(value, out ItemType itemType))
|
ItemType itemType;
|
||||||
|
if (Enum.TryParse(value, out itemType))
|
||||||
{
|
{
|
||||||
if (recipes[lastRecipe].Materials != null && recipes[lastRecipe].Materials.Count > 0)
|
if (recipes[lastRecipe].Materials != null && recipes[lastRecipe].Materials.Count > 0)
|
||||||
{
|
{
|
||||||
|
|
@ -435,7 +436,8 @@ namespace MinecraftClient.ChatBots
|
||||||
case "result":
|
case "result":
|
||||||
if (recipes.ContainsKey(lastRecipe))
|
if (recipes.ContainsKey(lastRecipe))
|
||||||
{
|
{
|
||||||
if (Enum.TryParse(value, out ItemType itemType))
|
ItemType itemType;
|
||||||
|
if (Enum.TryParse(value, out itemType))
|
||||||
{
|
{
|
||||||
recipes[lastRecipe].ResultItem = itemType;
|
recipes[lastRecipe].ResultItem = itemType;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue