forked from github/server
fix scripting bug in new autoseed module
This commit is contained in:
parent
bd46d08446
commit
1c85f0e1de
1 changed files with 16 additions and 16 deletions
|
@ -78,7 +78,6 @@ function autoseed.init()
|
|||
local sel
|
||||
eressea.log.info(#players .. ' new players')
|
||||
sel = select_regions(regions(), peasants, trees)
|
||||
end
|
||||
for _, p in ipairs(players) do
|
||||
if num_seeded == per_region then
|
||||
while not start or start.units() do
|
||||
|
@ -97,6 +96,7 @@ function autoseed.init()
|
|||
-- table.insert(newbs, f)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return autoseed
|
||||
|
|
Loading…
Reference in a new issue