Add the mod as the first arg to mod resource functs

This commit is contained in:
ManuelBlanc 2018-12-27 18:08:40 +01:00
parent b3dfd788b8
commit ed738d48a0

View file

@ -52,7 +52,7 @@ local function resolve_resource(mod, error_prefix_data, resource, resource_value
if type_value == "string" then
return vmf.safe_call_dofile(mod, error_prefix_data, resource_value)
elseif type_value == "function" then
return vmf.safe_call(mod, error_prefix_data, resource_value)
return vmf.safe_call(mod, error_prefix_data, resource_value, mod)
elseif type_value == "table" then
return true, type_value
end