Reactivate old behavior.FilterDisabled() and related commands

Started by Bruno Kestemont

Bruno Kestemont Lv 1

Well for correcting the old recipes, there is the solution to add this to the recipes:

–copy this at the early beginning of the recipe.

–START Translate old filter functions in order to keep original recipe code. By Bruno Kestemont 7/1/2019

function behavior.GetFiltersDisabled()

return not filter.AreAllEnabled()

end

function behavior.SetFiltersDisabled(disabling)
local disabling = disabling or true
if disabling then
filter.DisableAll() –Disables all filters
else
filter.EnableAll() –Enables all filters
end
end

function behavior.SetSlowFiltersDisabled(disabling)
if disabling then
filter.DisableAll() –Disables all filters
else
filter.EnableAll() –Enables all filters
end
end

–END Translate old filter functions in order to keep original recipe code