Fix /makepro not handling captures

This commit is contained in:
LoneWolfHT 2021-02-25 06:42:13 -08:00 committed by GitHub
parent 0282bce349
commit 9e20609ed6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!"