aboutsummaryrefslogtreecommitdiffstats
path: root/util/timer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/timer.lua')
-rw-r--r--util/timer.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/timer.lua b/util/timer.lua
index bc3836be..84da02cf 100644
--- a/util/timer.lua
+++ b/util/timer.lua
@@ -17,6 +17,11 @@ local xpcall = require "util.xpcall".xpcall;
local math_max = math.max;
local pairs = pairs;
+if server.timer then
+ -- The selected net.server implements this API, so defer to that
+ return server.timer;
+end
+
local _ENV = nil;
-- luacheck: std none