From b8f0efa54749ba9e63aa40e263d06ce4af5e24a2 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 28 Dec 2016 18:54:53 -0600 Subject: I broke it --- gamemode/init.lua | 2 +- 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!") -- cgit v1.2.3-70-g09d2