1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-25 21:29:06 +02:00

Mtn: fix luacheck

This commit is contained in:
Gerkiz 2024-11-02 10:39:16 +01:00
parent b4daaa6497
commit 706fa73132

View File

@ -1167,8 +1167,8 @@ local function get_mvps(force)
table.insert(score_list, { name = p.name, killscore = killscore, built_entities = built_entities, mined_entities = mined_entities })
end
end
if not score_list[1] or not score_list[1].name then return mvp end
local mvp = {}
if not score_list[1] or not score_list[1].name then return mvp end
score_list = get_sorted_list('killscore', score_list)
mvp.killscore = { name = score_list[1].name, score = score_list[1].killscore }
score_list = get_sorted_list('mined_entities', score_list)