From b34a00d57f109697b7778262b96ed1c6f829e90b Mon Sep 17 00:00:00 2001 From: bi Date: Fri, 8 Jun 2018 11:17:12 +0300 Subject: [PATCH] VMF Mod Manager: disabled compatibility with the old 'new_mod' structure --- vmf/scripts/mods/vmf/modules/vmf_mod_manager.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/vmf/scripts/mods/vmf/modules/vmf_mod_manager.lua b/vmf/scripts/mods/vmf/modules/vmf_mod_manager.lua index be368fc..f7c37a0 100644 --- a/vmf/scripts/mods/vmf/modules/vmf_mod_manager.lua +++ b/vmf/scripts/mods/vmf/modules/vmf_mod_manager.lua @@ -61,14 +61,8 @@ function new_mod(mod_name, mod_resources) end if type(mod_resources) ~= "table" then - --vmf:error("(new_mod): 'mod_resources' argument should have the 'table' type, not '%s'", type(mod_resources)) - --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 - } + vmf:error("(new_mod): 'mod_resources' argument should have the 'table' type, not '%s'", type(mod_resources)) + return end if not mod_resources.mod_script then