diff options
| -rw-r--r-- | gamemode/itemsystem/loaditems.lua | 4 | ||||
| -rw-r--r-- | gamemode/shared/player_recipes.lua | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gamemode/itemsystem/loaditems.lua b/gamemode/itemsystem/loaditems.lua index fb581e2..374fd18 100644 --- a/gamemode/itemsystem/loaditems.lua +++ b/gamemode/itemsystem/loaditems.lua @@ -2,8 +2,8 @@ local Folder = GM.Folder:gsub("gamemodes/","").."/gamemode/itemsystem/items" local insert = table.insert
print("Hello from loaditems.lua!")
-(GAMEMODE or GM).Items = (GAMEMODE or GM).Items or {}
-(GAMEMODE or GM).Recipes = (GAMEMODE or GM).Items or {}
+GM.Items = GM.Items or {}
+GM.Recipes = GM.Items or {}
--This is so that the client can store info about items/recepies too.
local gmitems = (GAMEMODE or GM).Items
diff --git a/gamemode/shared/player_recipes.lua b/gamemode/shared/player_recipes.lua index 4a85535..0c326f0 100644 --- a/gamemode/shared/player_recipes.lua +++ b/gamemode/shared/player_recipes.lua @@ -39,6 +39,7 @@ else local Dat = {}
for k,v in pairs(GAMEMODE.Recipes) do
+ if not v.Recipe then continue end
local Ab = v.Recipe.Resources
local Tools = v.Recipe.Tools
local PA = table.Count(Ab)
|
