Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Elkien3 committed Dec 12, 2022
1 parent a164381 commit 2619f50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mods/antilag/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ minetest.register_globalstep(function(lag)
times = times + 1
if times >= min_times then
minetest.request_shutdown("Server shutting down due to high latency (lag).")
end
elseif lag > 10 then
minetest.request_shutdown("Server shutting down due to high latency (lag).")
end
end
end)

0 comments on commit 2619f50

Please sign in to comment.