From e5793d7c7ff37d8d66e6e3af9942147f1ce2073b Mon Sep 17 00:00:00 2001 From: ANAND Date: Sat, 28 Dec 2019 10:50:04 +0530 Subject: [PATCH] ctf_map_core: Fix per-map treasures not being registered --- mods/ctf/ctf_map/ctf_map_core/schem_map.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_map/ctf_map_core/schem_map.lua b/mods/ctf/ctf_map/ctf_map_core/schem_map.lua index 69ef1cc..5a00ac0 100644 --- a/mods/ctf/ctf_map/ctf_map_core/schem_map.lua +++ b/mods/ctf/ctf_map/ctf_map_core/schem_map.lua @@ -382,8 +382,8 @@ ctf_match.register_on_new_match(function() -- if treasures field hasn't been defined in map meta if ctf_treasure then treasurer.treasures = {} - if ctf_map.treasures then - for _, item in pairs(ctf_map.treasures) do + if ctf_map.map.treasures then + for _, item in pairs(ctf_map.map.treasures) do item = item:split(",") -- treasurer.register_treasure(name, rarity, preciousness, count) if #item == 4 then