From 2a0c7c6319489573b51fa16071f83d661d750ac8 Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Wed, 31 Jul 2019 22:44:17 -0500 Subject: [PATCH] Fix: player still hidden on second death --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 63ef782..6c45581 100644 --- a/init.lua +++ b/init.lua @@ -117,6 +117,7 @@ end function death_timer.loop(name) local p = players[name] if not p or not p.time or p.time < 1 then + death_timer.show(player, name) local formspec = "size[11,5.5]bgcolor[#320000b4;true]" .. "label[5.15,1.35;Wait" .. "]button_exit[4,3;3,0.5;death_button;Play" .."]" @@ -143,7 +144,6 @@ function death_timer.loop(name) minetest.set_player_privs(name, privs) players[name] = nil end - death_timer.show(player, name) loops[name] = nil else p.time = p.time - 1