Skip to content

Commit

Permalink
Mtn: hide new surface
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Oct 26, 2024
1 parent ae572fa commit bedcd91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions maps/mountain_fortress_v3/surface.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ Global.register(
end
)

local function exclude_surface(surface)
for _, force in pairs(game.forces) do
force.set_surface_hidden(surface, true)
end
end

function Public.create_surface()
local map_gen_settings = {
['seed'] = math.random(10000, 99999),
Expand Down Expand Up @@ -102,6 +108,8 @@ function Public.create_landing_surface()
surface.request_to_generate_chunks({ 0, 0 }, 1)
surface.force_generate_chunk_requests()

exclude_surface(surface)

local walls = {}
local tiles = {}

Expand Down

0 comments on commit bedcd91

Please sign in to comment.