From 9e20609ed633c07d46e2dd36fde6f3a602871057 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Thu, 25 Feb 2021 06:42:13 -0800 Subject: [PATCH] Fix /makepro not handling captures --- mods/ctf/ctf_stats/chat.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mods/ctf/ctf_stats/chat.lua b/mods/ctf/ctf_stats/chat.lua index a3f3aa5..0d5e921 100644 --- a/mods/ctf/ctf_stats/chat.lua +++ b/mods/ctf/ctf_stats/chat.lua @@ -240,6 +240,11 @@ minetest.register_chatcommand("makepro", { modified = true end + if stats.captures < 10 then + stats.captures = 10 + modified = true + end + if modified then ctf_stats.request_save() return true, "Made " .. param .. " a pro!"