diff options
| author | Apickx <apickx@cogarr.com> | 2017-11-11 21:56:23 -0500 |
|---|---|---|
| committer | Apickx <apickx@cogarr.com> | 2017-11-11 21:56:23 -0500 |
| commit | b045e3fe401ed78ab16aa6202eeb36a428f8a8a2 (patch) | |
| tree | 5853eea6e924f122c0418f5a856b5c52c41bb92f /gamemode/itemsystem | |
| parent | ea20fb559ee456966d4ceb2c435ebbf5e4b295ae (diff) | |
| download | wintersurvival2-b045e3fe401ed78ab16aa6202eeb36a428f8a8a2.tar.gz wintersurvival2-b045e3fe401ed78ab16aa6202eeb36a428f8a8a2.tar.bz2 wintersurvival2-b045e3fe401ed78ab16aa6202eeb36a428f8a8a2.zip | |
Another attempt at fixing
Diffstat (limited to 'gamemode/itemsystem')
| -rw-r--r-- | gamemode/itemsystem/loaditems.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gamemode/itemsystem/loaditems.lua b/gamemode/itemsystem/loaditems.lua index 49e4cdf..fb581e2 100644 --- a/gamemode/itemsystem/loaditems.lua +++ b/gamemode/itemsystem/loaditems.lua @@ -2,9 +2,12 @@ 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 {}
+
--This is so that the client can store info about items/recepies too.
-local gmitems = (GAMEMODE or GM).Items or {}
-local gmrecepies = (GAMEMODE or GM).Recipes or {}
+local gmitems = (GAMEMODE or GM).Items
+local gmrecepies = (GAMEMODE or GM).Recipes
function RegisterItem(tbl)
assert(gmitems[tbl] == nil, "Cannot register 2 items with the same name!")
|
