Mapgen: write SuperUltraSigmaMapgen part 8.2

This commit is contained in:
Van
2025-11-26 19:41:29 +03:00
parent 6a392a9dc4
commit 4c3fcdce3e
2 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ end
---@param biome MapGen.Biome ---@param biome MapGen.Biome
function Layer:addBiome(biomeName, biome) function Layer:addBiome(biomeName, biome)
self.biomesByName[biomeName] = biome self.biomesByName[biomeName] = biome
table.insert(self.biomesList, self) table.insert(self.biomesList, biome)
end end
---Adds a cavern to the `Layer.cavernsByName` & `Layer.cavernsList` ---Adds a cavern to the `Layer.cavernsByName` & `Layer.cavernsList`

View File

@@ -68,7 +68,7 @@ function Peak:new(peakPos, multinoiseParams, groups)
end end
function instance:getMultinoise() function instance:getMultinoise()
if not table.is_empty(_multinoise) then if table.is_empty(_multinoise) then
error('Attempt to get `MapGen.Triangulation.FakePeak` noise (empty noise).') error('Attempt to get `MapGen.Triangulation.FakePeak` noise (empty noise).')
end end
@@ -80,7 +80,7 @@ function Peak:new(peakPos, multinoiseParams, groups)
Logger.warningLog('Multinoise has already been initialized. Re-initialization is not recommended.') Logger.warningLog('Multinoise has already been initialized. Re-initialization is not recommended.')
end end
if not table.is_empty(_multinoiseParams) then if table.is_empty(_multinoiseParams) then
error('Attempt to initialize `MapGen.Triangulation.FakePeak` noise (noise parameter empty).') error('Attempt to initialize `MapGen.Triangulation.FakePeak` noise (noise parameter empty).')
end end