aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2018-02-28 18:09:58 -0500
committerAlexander Pickering <alexandermpickering@gmail.com>2018-02-28 18:09:58 -0500
commit403e81b9eecb9a86bef5985425f81df577af7837 (patch)
treec7ccabc294f9ecca493a9b1c114acc6e1772569d /gamemode/core
parent5fd5f2b3d1c77c3b85355c452ffc7e1fe2e12162 (diff)
downloadartery-403e81b9eecb9a86bef5985425f81df577af7837.tar.gz
artery-403e81b9eecb9a86bef5985425f81df577af7837.tar.bz2
artery-403e81b9eecb9a86bef5985425f81df577af7837.zip
Breaking redirect to implement a better system
Diffstat (limited to 'gamemode/core')
-rw-r--r--gamemode/core/database/sv_setup.lua6
-rw-r--r--gamemode/core/npc/sv_npcsystem.lua2
2 files changed, 4 insertions, 4 deletions
diff --git a/gamemode/core/database/sv_setup.lua b/gamemode/core/database/sv_setup.lua
index dd2332d..a99cef4 100644
--- a/gamemode/core/database/sv_setup.lua
+++ b/gamemode/core/database/sv_setup.lua
@@ -68,9 +68,9 @@ function sql.GetPlayerData(ply)
local mtbl = util.JSONToTable(meta)
if mtbl.lastserver ~= game.GetIPAddress() then
--ply:ConCommand("connect " .. mtbl.lastserver)
- net.Start("art_sendtoserver")
- net.WriteString(mtbl.lastserver)
- net.Send(ply)
+ -- net.Start("art_sendtoserver")
+ -- net.WriteString(mtbl.lastserver)
+ -- net.Send(ply)
return nil
end
local _,_,x,y,z = string.find(mtbl.lastlocation,"([-%d%.]+) ([-%d%.]+) ([-%d%.]+)")
diff --git a/gamemode/core/npc/sv_npcsystem.lua b/gamemode/core/npc/sv_npcsystem.lua
index d376d6d..7c75f90 100644
--- a/gamemode/core/npc/sv_npcsystem.lua
+++ b/gamemode/core/npc/sv_npcsystem.lua
@@ -10,7 +10,7 @@ local autocompletef
---Registers an NPC.
-- Adds an npc to the global table. NPC's should have unique .Name fields, if they don't, this function will error.
---@see npc
+--@see npctbl
--@tparam table npc The npc's table.
function n.RegisterNPC(npc)
assert(npc ~= nil, "Attempted to register a nil npc")