From 9a77817b62fe4253460c56944537ebe4729246de Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 9 Sep 2020 17:34:03 +0200 Subject: [PATCH] Fix birthday refactoring --- birthday.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/birthday.lua b/birthday.lua index a675f37..594e12c 100755 --- a/birthday.lua +++ b/birthday.lua @@ -41,6 +41,7 @@ function elidragon.flower_rain(name) minetest.after(0.5, function() elidragon.flower_rain(name) end) end minetest.register_on_joinplayer(function(player) + local name = player:get_player_name() if elidragon.get_birthday(player) == os.date("%d/%m") then minetest.chat_send_all(minetest.colorize("#FF20FF", name .. " has joined the game. Today is their birthday!")) elidragon.flower_rain(name) -- 2.44.0