diff --git a/mods/ctf/ctf_map/maps b/mods/ctf/ctf_map/maps index 631fc3f69..e3266f6e5 160000 --- a/mods/ctf/ctf_map/maps +++ b/mods/ctf/ctf_map/maps @@ -1 +1 @@ -Subproject commit 631fc3f69950419afe9164aecef01881f36b19f3 +Subproject commit e3266f6e540df7d840e9bceef392eca6fcf8b6bd diff --git a/mods/ctf/ctf_modebase/ranking_commands.lua b/mods/ctf/ctf_modebase/ranking_commands.lua index 65025f916..29116c5f4 100644 --- a/mods/ctf/ctf_modebase/ranking_commands.lua +++ b/mods/ctf/ctf_modebase/ranking_commands.lua @@ -206,10 +206,14 @@ minetest.register_chatcommand("reset_rankings", { allow_reset[key] = nil end) - return true, "This will reset your stats and rankings for " .. mode_name .." mode completely." - .. " You will lose access to any special privileges such as the" - .. " team chest or userlimit skip. This is irreversable. If you're" - .. " sure, re-type /reset_rankings within 30 seconds to reset." + return true, minetest.colorize("red", "This will reset your (") .. + minetest.colorize("cyan", name) .. + minetest.colorize("red", ") stats and rankings for ") .. + minetest.colorize("cyan", mode_name) .. + minetest.colorize("red", " mode completely.\n") .. + "You will lose access to any special privileges such as the " .. + "team chest or userlimit skip. This is irreversable. If you're " .. + "sure, re-type /reset_rankings within 30 seconds to reset." end mode_data.rankings:set(name, {}, true) allow_reset[key] = nil diff --git a/mods/ctf/ctf_teams/team_chest.lua b/mods/ctf/ctf_teams/team_chest.lua index 49aba0450..cbbf48530 100644 --- a/mods/ctf/ctf_teams/team_chest.lua +++ b/mods/ctf/ctf_teams/team_chest.lua @@ -318,7 +318,9 @@ for _, team in ipairs(ctf_teams.teamlist) do end meta:set_string("dropped_by", "") local inv = minetest.get_inventory({ type="node", pos=pos }) - inv:set_stack(listname, index, stack) + local stack_ = inv:get_stack(listname,index) + stack_:get_meta():set_string("dropped_by", "") + inv:set_stack(listname, index, stack_) end function def.on_metadata_inventory_take(pos, listname, index, stack, player)