LuaControl.get_craftable_count doesnt work for LuaRecipe
Posted: Mon Jan 29, 2018 10:10 pm
Just tried to pass a LuaRecipe to the get_craftable_count function and it returned
In the API documentation it says, i can either pass a string or an entire LuaRecipe. Passing a string works (e.g. extracting the name out of the LuaRecipe), but passing the whole LuaRecipe does not.
Tested this in version 0.15.40.
LuaControl.get_craftable_count
Code: Select all
#-1 to 'get_craftable_count' (string expected, got table)
Tested this in version 0.15.40.
LuaControl.get_craftable_count