This commit is contained in:
Van
2026-01-25 12:29:18 +03:00
parent eb69779b0d
commit b08f808167

View File

@@ -425,9 +425,9 @@ end
function MapGen:registerPeak(layerName, category, def) function MapGen:registerPeak(layerName, category, def)
local layer = self:getLayerByName(layerName) local layer = self:getLayerByName(layerName)
assert(self:getPeakByPos(layer, category, def.pos) == nil, --assert(self:getPeakByPos(layer, category, def.pos) == nil,
('In the `%s` layer in the `%s` category there is already a peak with coordinates: %s, %s, %s.'):format( --('In the `%s` layer in the `%s` category there is already a peak with coordinates: %s, %s, %s.'):format(
layerName, category, def.pos.x, def.pos.y, def.pos.z)) -- layerName, category, def.pos.x, def.pos.y, def.pos.z))
---@type MapGen.Peak ---@type MapGen.Peak
local peak = Peak:new(def) local peak = Peak:new(def)