VMF Mod Manager: disabled compatibility with the old 'new_mod' structure

This commit is contained in:
bi 2018-06-08 11:17:12 +03:00
parent 1ee5beaa76
commit b34a00d57f

View file

@ -61,14 +61,8 @@ function new_mod(mod_name, mod_resources)
end end
if type(mod_resources) ~= "table" then if type(mod_resources) ~= "table" then
--vmf:error("(new_mod): 'mod_resources' argument should have the 'table' type, not '%s'", type(mod_resources)) vmf:error("(new_mod): 'mod_resources' argument should have the 'table' type, not '%s'", type(mod_resources))
--return return
vmf:error("ERROR: '%s' can't be loaded. Wait until its author updates their mod to the newest VMF structure.",
mod_name)
return {
localization = function() end,
initialize = function() end
}
end end
if not mod_resources.mod_script then if not mod_resources.mod_script then