Make teleport delay be 0 on creative mode
This commit is contained in:
parent
1812f507f6
commit
248af89f78
@ -536,7 +536,8 @@ local function teleport(obj)
|
||||
end
|
||||
|
||||
local function initiate_teleport(obj)
|
||||
minetest.after(TELEPORT_DELAY, function()
|
||||
local creative = minetest.is_creative_enabled(obj:is_player() and obj:get_player_name() or nil)
|
||||
minetest.after(creative and 0 or TELEPORT_DELAY, function()
|
||||
teleport(obj)
|
||||
end)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user