diff options
Diffstat (limited to 'gamemode')
| -rw-r--r-- | gamemode/init.lua | 2 | ||||
| -rw-r--r-- | gamemode/itemsystem/loaditems.lua | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua index 38e49a9..82cac7f 100644 --- a/gamemode/init.lua +++ b/gamemode/init.lua @@ -50,7 +50,7 @@ end function GM:PlayerInitialSpawn(pl)
if (!self.CountDown and #player.GetAll() > 1) then self:StartCountDown() end
- if(#GetAllHumans() == 1) then
+ if(#player.GetAllHumans() == 1) then
pl:SetHuman(true)
else
pl:SetHuman(false)
diff --git a/gamemode/itemsystem/loaditems.lua b/gamemode/itemsystem/loaditems.lua index 6d42f87..27c71ec 100644 --- a/gamemode/itemsystem/loaditems.lua +++ b/gamemode/itemsystem/loaditems.lua @@ -3,8 +3,8 @@ local insert = table.insert print("Hello from loaditems.lua!")
--This is so that the client can store info about items/recepies too.
-local gmitems = GAMEMODE.Items or {}
-local gmrecepies = GAMEMODE.Recipes or {}
+local gmitems = GM.Items or {}
+local gmrecepies = GM.Recipes or {}
function RegisterItem(tbl)
assert(gmitems[tbl] == nil, "Cannot register 2 items with the same name!")
|
