If min_players ingredient is greater than 2, change arenas' min_players with that value (and in case, also max_players if smaller) (closes #247)
This commit is contained in:
parent
717775d8de
commit
2d2dd7d333
@ -497,6 +497,8 @@ function arena_lib.create_arena(sender, mod, arena_name, min_players, max_player
|
||||
local arena = mod_ref.arenas[ID]
|
||||
|
||||
arena.name = arena_name
|
||||
arena.min_players = math.max(arena.min_players, mod_ref.min_players)
|
||||
arena.max_players = math.max(arena.max_players, mod_ref.min_players)
|
||||
|
||||
-- numero giocatorɜ
|
||||
if mod_ref.endless then
|
||||
|
Loading…
x
Reference in New Issue
Block a user