From 9f8a7de980aec157a727c782520742df7291ad1b Mon Sep 17 00:00:00 2001 From: hanakocz Date: Thu, 25 Mar 2021 03:49:03 +0100 Subject: [PATCH] more lua fixes --- maps/chronosphere/worlds/caveworld.lua | 2 +- maps/chronosphere/worlds/fishmarket.lua | 2 +- maps/chronosphere/worlds/forest.lua | 3 +-- maps/chronosphere/worlds/maze.lua | 2 +- maps/chronosphere/worlds/riverlands.lua | 2 +- maps/chronosphere/worlds/scrapyard.lua | 1 - maps/chronosphere/worlds/swamp.lua | 2 +- 7 files changed, 6 insertions(+), 8 deletions(-) diff --git a/maps/chronosphere/worlds/caveworld.lua b/maps/chronosphere/worlds/caveworld.lua index 85a88f68..835a81b3 100644 --- a/maps/chronosphere/worlds/caveworld.lua +++ b/maps/chronosphere/worlds/caveworld.lua @@ -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 diff --git a/maps/chronosphere/worlds/fishmarket.lua b/maps/chronosphere/worlds/fishmarket.lua index 841743d7..065c4bb5 100644 --- a/maps/chronosphere/worlds/fishmarket.lua +++ b/maps/chronosphere/worlds/fishmarket.lua @@ -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 diff --git a/maps/chronosphere/worlds/forest.lua b/maps/chronosphere/worlds/forest.lua index 846949a4..34e9f0b3 100644 --- a/maps/chronosphere/worlds/forest.lua +++ b/maps/chronosphere/worlds/forest.lua @@ -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 diff --git a/maps/chronosphere/worlds/maze.lua b/maps/chronosphere/worlds/maze.lua index 558716d4..94736883 100644 --- a/maps/chronosphere/worlds/maze.lua +++ b/maps/chronosphere/worlds/maze.lua @@ -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 diff --git a/maps/chronosphere/worlds/riverlands.lua b/maps/chronosphere/worlds/riverlands.lua index 8912b12a..dcf93dab 100644 --- a/maps/chronosphere/worlds/riverlands.lua +++ b/maps/chronosphere/worlds/riverlands.lua @@ -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 diff --git a/maps/chronosphere/worlds/scrapyard.lua b/maps/chronosphere/worlds/scrapyard.lua index aefc98a0..b8cc2b5e 100644 --- a/maps/chronosphere/worlds/scrapyard.lua +++ b/maps/chronosphere/worlds/scrapyard.lua @@ -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) diff --git a/maps/chronosphere/worlds/swamp.lua b/maps/chronosphere/worlds/swamp.lua index fa796865..3afd39cd 100644 --- a/maps/chronosphere/worlds/swamp.lua +++ b/maps/chronosphere/worlds/swamp.lua @@ -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