diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-12-28 18:54:53 -0600 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-12-28 18:54:53 -0600 |
| commit | b8f0efa54749ba9e63aa40e263d06ce4af5e24a2 (patch) | |
| tree | ee18def1aad013b890ef24dfe9198d360cb3f51e /gamemode | |
| parent | 0ceb38e8a1f26716fe4756c1cfbdbbedd1fae5f1 (diff) | |
| download | wintersurvival2-b8f0efa54749ba9e63aa40e263d06ce4af5e24a2.tar.gz wintersurvival2-b8f0efa54749ba9e63aa40e263d06ce4af5e24a2.tar.bz2 wintersurvival2-b8f0efa54749ba9e63aa40e263d06ce4af5e24a2.zip | |
I broke it
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!")
|
