brewing station auto learn

This commit is contained in:
kepler155c
2018-10-28 04:23:24 -04:00
parent b96c064431
commit 9d45460a3b
6 changed files with 12 additions and 13 deletions

View File

@@ -203,7 +203,7 @@ function listingPage:eventHandler(event)
if context.userRecipes[key] then
context.userRecipes[key] = nil
Util.writeTable(Milo.RECIPES_FILE, context.userRecipes)
Util.writeTable(Craft.USER_RECIPES, context.userRecipes)
Craft.loadRecipes()
end

View File

@@ -21,7 +21,7 @@ function PotionImportTask:cycle(context)
if self.brewQueue[v.name] and list[1] then
local key = Milo:uniqueKey(list[1])
if not Craft.findRecipe(key) then
debug('saving new recipe')
debug('saving new recipe')
Milo:saveMachineRecipe(self.brewQueue[v.name], list[1], v.name)
end
end

View File

@@ -96,7 +96,7 @@ local function learnRecipe()
end
context.userRecipes[key] = newRecipe
Util.writeTable(Milo.RECIPES_FILE, context.userRecipes)
Util.writeTable(Craft.USER_RECIPES, context.userRecipes)
Craft.loadRecipes()
turtle.emptyInventory()