From eea43a78332e3a4ced53ca1519f2e08d90957e4e Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Fri, 10 Dec 2021 19:11:07 +0100 Subject: [PATCH] replace depricated get_attribute --- death.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/death.lua b/death.lua index fc4d1f6..b4ebdad 100644 --- a/death.lua +++ b/death.lua @@ -15,10 +15,10 @@ minetest.register_on_dieplayer(function(player) minetest.chat_send_player(player_name, "You died at " .. pos_string) local bone_string = "Bones" - if player.get_attribute then + if player.get_meta then -- [xp_redo] keeps track of deathcount, let's see if it is there - local count = player:get_attribute("died") - if count then + local count = player:get_meta():get_int("died") + if 0 < count then bone_string = "Bone #" .. tostring(count) end end -- if not fake player