Search the Community
Showing results for tags 'valid'.
Found 1 result
Here is the error I encountered today. Note that YESTERDAY (!?) everything was working just fine. None of the files or codes have been changed. Just... suddenly an error came. Seems to be about these in the modmain: if not GLOBAL.TheNet:IsDedicated() then local OldIsRecipeValid = GLOBAL.IsRecipeValid local function IsRecipeValid(recipe) return OldIsRecipeValid(recipe) and ((GLOBAL.ThePlayer and GLOBAL.ThePlayer:HasTag(recipe.name.."_builder")) or not recipe.tagneeded) end GLOBAL.IsRecipeValid = IsRecipeValidend Error from the log: [string "../mods/workshop-389385830/modmain.lua"]:75: variable 'IsRecipeValid' is not declaredLUA ERROR stack traceback: In character I have tag of "something_builder". So the purpouse is to not let other people obtain this recipe (unless thet play the same character of course). So... Question is:Why it just stopped working if it was working just fine?How to fix it and how to avoid it in future?