Jump to content

Semantical error in data/scripts/cooking.lua


baldr
  • Fixed

data/scripts/cooking.lua:111

local function GetIngredientData(prefabname)
    local name = aliases.prefabname or prefabname

But aliases table doesn't have prefabname field — probably aliases.prefabname should be aliases[prefabname] instead. Luckily prefab name is translated in GetIngredientValues() right before passing it to GetIngredientData():

        local name = aliases[v] or v
        prefabs[name] = prefabs[name] and prefabs[name] + 1 or 1
        local data = GetIngredientData(name)

hence this error is neglible, provided GetIngredientData() is not used anywhere else.


Steps to Reproduce
It's already fixed, but can introduce bug in future



User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...