ctf_map_core: Fix per-map treasures not being registered
This commit is contained in:
parent
123695cd0e
commit
e5793d7c7f
1 changed files with 2 additions and 2 deletions
|
@ -382,8 +382,8 @@ ctf_match.register_on_new_match(function()
|
||||||
-- if treasures field hasn't been defined in map meta
|
-- if treasures field hasn't been defined in map meta
|
||||||
if ctf_treasure then
|
if ctf_treasure then
|
||||||
treasurer.treasures = {}
|
treasurer.treasures = {}
|
||||||
if ctf_map.treasures then
|
if ctf_map.map.treasures then
|
||||||
for _, item in pairs(ctf_map.treasures) do
|
for _, item in pairs(ctf_map.map.treasures) do
|
||||||
item = item:split(",")
|
item = item:split(",")
|
||||||
-- treasurer.register_treasure(name, rarity, preciousness, count)
|
-- treasurer.register_treasure(name, rarity, preciousness, count)
|
||||||
if #item == 4 then
|
if #item == 4 then
|
||||||
|
|
Loading…
Reference in a new issue