summaryrefslogtreecommitdiff
path: root/gamemode/structuresystem
diff options
context:
space:
mode:
authorScott <scotth0828@gmail.com>2016-05-30 02:18:03 -0400
committerScott <scotth0828@gmail.com>2016-05-30 02:18:03 -0400
commit99ecd9db0c2aca2a37e24ef38374b7d535d43049 (patch)
treeea861d92ef71e4288121377ca04c3b840eabffe3 /gamemode/structuresystem
parent27d82244e24c25e7b272d5b8bed34ce36907780a (diff)
downloadgmstranded-99ecd9db0c2aca2a37e24ef38374b7d535d43049.tar.gz
gmstranded-99ecd9db0c2aca2a37e24ef38374b7d535d43049.tar.bz2
gmstranded-99ecd9db0c2aca2a37e24ef38374b7d535d43049.zip
Bug when checking for resources fixed
Diffstat (limited to 'gamemode/structuresystem')
-rw-r--r--gamemode/structuresystem/common.lua2
1 files changed, 1 insertions, 1 deletions
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