mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-07 13:31:40 +02:00
more lua fixes
This commit is contained in:
parent
09bac50da6
commit
9f8a7de980
@ -143,7 +143,7 @@ local function empty_chunk(surface, left_top)
|
||||
Functions.spawn_decoratives(surface, decoratives)
|
||||
end
|
||||
|
||||
local function caveworld(variant, surface, left_top)
|
||||
local function caveworld(_, surface, left_top)
|
||||
if abs(left_top.y) <= 31 and abs(left_top.x) <= 31 then
|
||||
empty_chunk(surface, left_top)
|
||||
return
|
||||
|
@ -93,7 +93,7 @@ local function normal_chunk(surface, left_top)
|
||||
Functions.spawn_entities(surface, entities)
|
||||
end
|
||||
|
||||
local function fishmarket(variant, surface, left_top)
|
||||
local function fishmarket(_, surface, left_top)
|
||||
if abs(left_top.y) <= 31 and abs(left_top.x - 864) <= 31 then
|
||||
market_chunk(surface, left_top)
|
||||
return
|
||||
|
@ -52,7 +52,6 @@ local function normal_chunk(surface, left_top)
|
||||
process_tile(p, seed, entities)
|
||||
end
|
||||
end
|
||||
Functions.spawn_treasures(surface, treasure)
|
||||
Functions.spawn_entities(surface, entities)
|
||||
end
|
||||
|
||||
@ -69,7 +68,7 @@ local function empty_chunk(surface, left_top)
|
||||
Functions.replace_water(surface, left_top)
|
||||
end
|
||||
|
||||
local function forest(variant, surface, left_top)
|
||||
local function forest(_, surface, left_top)
|
||||
if abs(left_top.y) <= 31 and abs(left_top.x) <= 31 then
|
||||
empty_chunk(surface, left_top)
|
||||
return
|
||||
|
@ -144,7 +144,7 @@ local function empty_chunk(surface, left_top)
|
||||
Functions.replace_water(surface, left_top)
|
||||
end
|
||||
|
||||
local function maze(variant, surface, left_top)
|
||||
local function maze(_, surface, left_top)
|
||||
if abs(left_top.y) <= 31 and abs(left_top.x) <= 31 then
|
||||
empty_chunk(surface, left_top)
|
||||
return
|
||||
|
@ -117,7 +117,7 @@ local function empty_chunk(surface, left_top)
|
||||
Functions.replace_water(surface, left_top)
|
||||
end
|
||||
|
||||
local function riverlands(variant, surface, left_top)
|
||||
local function riverlands(_, surface, left_top)
|
||||
if abs(left_top.y) <= 31 and abs(left_top.x) <= 31 then
|
||||
empty_chunk(surface, left_top)
|
||||
return
|
||||
|
@ -123,7 +123,6 @@ local function normal_chunk(surface, left_top)
|
||||
end
|
||||
end
|
||||
surface.set_tiles(tiles, true)
|
||||
Functions.spawn_treasures(surface, treasure)
|
||||
Functions.spawn_entities(surface, entities)
|
||||
for _, pos in pairs(factories) do
|
||||
Specials.production_factory(surface, pos)
|
||||
|
@ -87,7 +87,7 @@ local function empty_chunk(surface, left_top)
|
||||
Functions.replace_water(surface, left_top)
|
||||
end
|
||||
|
||||
local function swamp(variant, surface, left_top)
|
||||
local function swamp(_, surface, left_top)
|
||||
if abs(left_top.y) <= 63 and abs(left_top.x) <= 63 then
|
||||
empty_chunk(surface, left_top)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user