From fdd5f92ce7843727098b5e805c2136be7ef3e69c Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Sun, 26 Nov 2023 16:58:52 -0500 Subject: [PATCH] lazy fix for newplayers --- mods/dg_gui/init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/dg_gui/init.lua b/mods/dg_gui/init.lua index 0da6b41..eac444d 100644 --- a/mods/dg_gui/init.lua +++ b/mods/dg_gui/init.lua @@ -8,3 +8,8 @@ minetest.register_on_joinplayer(function(player) ]] player:set_formspec_prepend(formspec) end) + +minetest.register_on_newplayer(function(player) + local currpos = player:get_pos() + player:set_pos(vector.new(currpos.x, currpos.y + 20, currpos.z)) +end)