Fix /makepro not handling captures
This commit is contained in:
parent
0282bce349
commit
9e20609ed6
1 changed files with 5 additions and 0 deletions
|
@ -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!"
|
||||
|
|
Loading…
Reference in a new issue