summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
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)