From 18ce360176c49971059a89d6507344365823fc29 Mon Sep 17 00:00:00 2001 From: Ayane Satomi Date: Tue, 2 Aug 2022 00:53:01 +0800 Subject: [PATCH] use think hook on server --- starfallex/serverinfo.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/starfallex/serverinfo.lua b/starfallex/serverinfo.lua index c67ddec..006271a 100644 --- a/starfallex/serverinfo.lua +++ b/starfallex/serverinfo.lua @@ -57,7 +57,7 @@ if SERVER then local prevName = "" local prevSTime = "" - hook.add("tick", "serverTimeTick", function() + hook.add("think", "serverTimeTick", function() if prevSTime ~= os.date() then prevSTime = os.date() net.start("serverTime") @@ -67,7 +67,7 @@ if SERVER then end) -- METASTRUCT SPECIFIC HOOK - hook.add("tick", "e621", function() + hook.add("think", "e621", function() if prevName ~= game.getHostname() then prevName = game.getHostname() net.start("serverName")