From 18ba3c66592bcf13fee83c77ff6c2394ac98457a Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 13 Jan 2017 02:11:44 -0600 Subject: Add lower bound on interrupt times --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index d0b63cf..886e68d 100644 --- a/init.lua +++ b/init.lua @@ -279,6 +279,8 @@ local function run(pos,event) end function context.interrupt(time,iid) + --Enforce a minimum interrupt time of half a second + time = math.max(time,0.5) if iid == "gapout" then --This one can have the time changed on-the-fly, so it has to be done with node timers local timer = minetest.get_node_timer(pos) -- cgit v1.2.3