mirror of
https://github.com/veden/Rampant.git
synced 2025-01-26 03:20:07 +02:00
fixed world processor
This commit is contained in:
parent
cca711c01b
commit
0271a370df
@ -58,6 +58,9 @@ Configure Options not in game menu:
|
||||
|
||||
# Version History
|
||||
|
||||
0.15.19 -
|
||||
- Fixed: Error when processing item collectors
|
||||
|
||||
0.15.18 -
|
||||
- Feature: Adds an item collector for things like alien artifacts
|
||||
- Improvement: Added checks for how many squads have been created to enfore global limit over all squad creation methods
|
||||
|
@ -170,6 +170,11 @@ function upgrade.attempt(natives, world)
|
||||
game.surfaces[1].print("Rampant - Version 0.15.18")
|
||||
global.version = constants.VERSION_28
|
||||
end
|
||||
if (global.version < constants.VERSION_29) then
|
||||
|
||||
game.surfaces[1].print("Rampant - Version 0.15.19")
|
||||
global.version = constants.VERSION_29
|
||||
end
|
||||
return starting ~= global.version, natives, world
|
||||
end
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name" : "Rampant",
|
||||
"factorio_version" : "0.15",
|
||||
"version" : "0.15.18",
|
||||
"version" : "0.15.19",
|
||||
"title" : "Rampant",
|
||||
"author" : "Veden",
|
||||
"homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445",
|
||||
|
@ -15,6 +15,7 @@ constants.VERSION_25 = 25
|
||||
constants.VERSION_26 = 26
|
||||
constants.VERSION_27 = 27
|
||||
constants.VERSION_28 = 28
|
||||
constants.VERSION_29 = 29
|
||||
|
||||
-- misc
|
||||
|
||||
|
@ -54,7 +54,7 @@ function worldProcessor.processWorld(surface, world, tick)
|
||||
if not counts[itemName] then
|
||||
counts[itemName] = {item}
|
||||
else
|
||||
counts[#counts[itemName]+1] = item
|
||||
counts[itemName][#counts[itemName]+1] = item
|
||||
end
|
||||
end
|
||||
for k,a in pairs(counts) do
|
||||
|
Loading…
x
Reference in New Issue
Block a user