Jump to content

Field Config in AddRecipe2 can no longer be nil


O_Atoba_Azul
  • Fixed

Before update 499819, modded recipes with nil in the field config of AddRecipe2 worked just fine, but now crash with the following error:
 

[00:04:19]: [string "scripts/modutil.lua"]:633: attempt to index local 'config' (a nil value)
LUA ERROR stack traceback:
        scripts/modutil.lua(633,1) in function 'AddRecipe2'
        ../mods/uncompromising-survival/init/init_recipes.lua(194,1) in function 'result'
        scripts/mods.lua(329,1) in function 'modimport'
        ../mods/uncompromising-survival/init/init_gamemodes/init_uncompromising_mode.lua(83,1) in function 'result'
        scripts/mods.lua(329,1) in function 'modimport'
        ../mods/uncompromising-survival/modmain.lua(6,1) in main chunk
        =[C] in function 'xpcall'
        scripts/util.lua(780,1) in function 'RunInEnvironment'
        scripts/mods.lua(562,1) in function 'InitializeModMain'
        scripts/mods.lua(536,1) in function 'LoadMods'
        scripts/main.lua(356,1) in function 'ModSafeStartup'
        scripts/main.lua(477,1)
        =[C] in function 'SetPersistentString'
        scripts/mainfunctions.lua(26,1) in function 'SavePersistentString'
        scripts/modindex.lua(119,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(106,1) in function 'BeginStartupSequence'
        scripts/main.lua(476,1) in function 'callback'
        scripts/modindex.lua(735,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(709,1) in function 'Load'
        scripts/main.lua(475,1) in main chunk

 


Steps to Reproduce

Add a recipe with AddRecipe2, let config nil and enter the game.

  • Thanks 1



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.


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...