summaryrefslogtreecommitdiff
path: root/server/server.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-06-19 05:30:45 +0100
committerubq323 <ubq323@ubq323.website>2023-06-19 05:30:45 +0100
commit16f350963e8b696690534cab2fd3b6eb681731c1 (patch)
tree8b221d3db7d5b97c4468c95d2d39e52d719505ee /server/server.lua
parentf55c9f415a081a175e48b51db894f23e59ce47a2 (diff)
fix shadowing issues reported by luacheck
Diffstat (limited to 'server/server.lua')
-rw-r--r--server/server.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/server.lua b/server/server.lua
index 5d17e5f..a6fd42b 100644
--- a/server/server.lua
+++ b/server/server.lua
@@ -188,7 +188,6 @@ end
local tick_interval = 1 -- seconds
local last_tick_time = timenow()
-local ntick = 0
local function player_near_chunk(cp)
@@ -229,6 +228,8 @@ local stopping=false
posix_signal.signal(posix_signal.SIGINT, function() stopping=true end)
+local ntick = 0
+
while true do
if stopping then
print("stopping...")