Add the mod as the first arg to mod resource functs
This commit is contained in:
parent
b3dfd788b8
commit
ed738d48a0
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ local function resolve_resource(mod, error_prefix_data, resource, resource_value
|
||||||
if type_value == "string" then
|
if type_value == "string" then
|
||||||
return vmf.safe_call_dofile(mod, error_prefix_data, resource_value)
|
return vmf.safe_call_dofile(mod, error_prefix_data, resource_value)
|
||||||
elseif type_value == "function" then
|
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
|
elseif type_value == "table" then
|
||||||
return true, type_value
|
return true, type_value
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue