From 248af89f78312ed0eaf03c5896cd4fc3dedcd79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20=C3=85str=C3=B6m?= Date: Thu, 11 May 2023 17:27:11 +0200 Subject: [PATCH] Make teleport delay be 0 on creative mode --- mods/ITEMS/mcl_portals/portal_nether.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_portals/portal_nether.lua b/mods/ITEMS/mcl_portals/portal_nether.lua index 68ec6d62e..983f0eaff 100644 --- a/mods/ITEMS/mcl_portals/portal_nether.lua +++ b/mods/ITEMS/mcl_portals/portal_nether.lua @@ -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