From 99ecd9db0c2aca2a37e24ef38374b7d535d43049 Mon Sep 17 00:00:00 2001 From: Scott Date: Mon, 30 May 2016 02:18:03 -0400 Subject: Bug when checking for resources fixed --- gamemode/structuresystem/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gamemode/structuresystem/common.lua') diff --git a/gamemode/structuresystem/common.lua b/gamemode/structuresystem/common.lua index 4996223..1c174d0 100644 --- a/gamemode/structuresystem/common.lua +++ b/gamemode/structuresystem/common.lua @@ -77,7 +77,7 @@ function genericMakeCrafting(tbl) thisrecipe.hasmatsfor = true PrintTable(thisrecipe.Req) for l,m in pairs(thisrecipe.Req) do - if(Resources[l] < m) then + if(Resources[l] == nil or Resources[l] < m) then thisrecipe.hasmatsfor = false break end -- cgit v1.2.3-70-g09d2