From 730e5f6998f445bcc59c61582242c875a975890d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 24 Oct 2020 11:42:24 +0200 Subject: [PATCH] Some mcl_experience cleanup --- mods/HUD/mcl_experience/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mods/HUD/mcl_experience/init.lua b/mods/HUD/mcl_experience/init.lua index 46b55df4ad..ddcdd1562e 100644 --- a/mods/HUD/mcl_experience/init.lua +++ b/mods/HUD/mcl_experience/init.lua @@ -46,7 +46,7 @@ end -- saves data to be utilized on next login local save_data = function(player) - name = player:get_player_name() + local name = player:get_player_name() local temp_pool = pool[name] local meta = player:get_meta() meta:set_int("xp", temp_pool.xp) @@ -508,7 +508,6 @@ minetest.register_chatcommand("xp", { end mcl_experience.add_experience(player, xp) local playername = player:get_player_name() --- minetest.chat_send_player(name, "Added " .. tostring(xp) .. " XP to " .. playername .. ", they've got " .. tostring(pool[playername].xp) .. " XP, level " .. tostring(pool[playername].level)) minetest.chat_send_player(name, S("Added @1 XP to @2, total: @3, experience level: @4", tostring(xp), playername, tostring(pool[playername].xp), tostring(pool[playername].level))) end, })