Remove GlobalSpace, domains and extends methods in Mod

This commit is contained in:
Van
2025-12-01 17:08:56 +03:00
parent ace217832b
commit e44420d0ab
19 changed files with 72 additions and 50 deletions

View File

@@ -664,8 +664,6 @@ function MapGen:onMapGenerated(voxelManip, minPos, maxPos, blockseed)
-- local param2_data = voxelManip:get_param2_data()
local area = VoxelArea:new({MinEdge = eMin, MaxEdge = eMax})
data[area:index(0,50,0)] = core.get_content_id('rocks:malachite')
local index
-- Initial generation: landscape
for z = minPos.z, maxPos.z do

View File

@@ -10,7 +10,7 @@ local Peak = require('MapGen.Peak')
---@class MapGen.Triangulation.FakePeak : MapGen.Peak
---@field id number
---@field getPeakPos fun():vector
local FakePeak = Mod:getClassExtended(Peak, {})
local FakePeak = Class.extend(Peak, {})
---Returns a fake `MapGen.Peak` that has no noise parameters.
---Note that the initialized peak should not be used in generation.