1
0
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:
hanakocz 2021-03-25 03:49:03 +01:00
parent 09bac50da6
commit 9f8a7de980
7 changed files with 6 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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