MapGen: Ore: minor change

This commit is contained in:
Van
2026-07-17 21:28:59 +03:00
parent aafb0a3600
commit 204cd9b1aa

View File

@@ -6,7 +6,7 @@ local coreGetValueNoise = core.get_value_noise
local getInstance = Class.getInstance local getInstance = Class.getInstance
---@alias MapGen.Ore.Type 'cheesed'|'custom' ---@alias MapGen.Ore.Type 'cheesy'|'custom'
---@alias MapGen.Ore.NoiseParams {baseNoise:NoiseParams, xNoise?:NoiseParams, yNoise?:NoiseParams, zNoise?:NoiseParams} ---@alias MapGen.Ore.NoiseParams {baseNoise:NoiseParams, xNoise?:NoiseParams, yNoise?:NoiseParams, zNoise?:NoiseParams}
---@alias MapGen.Ore.ValueNoise {baseNoise:ValueNoise, xNoise?:ValueNoise, yNoise?:ValueNoise, zNoise?:ValueNoise} ---@alias MapGen.Ore.ValueNoise {baseNoise:ValueNoise, xNoise?:ValueNoise, yNoise?:ValueNoise, zNoise?:ValueNoise}
@@ -149,7 +149,7 @@ function Ore:generate(factors, data, data2, index, x, y, z)
return false return false
end end
if self.type == 'cheesed' then if self.type == 'cheesy' then
return self:generateCheesed(factors, data, data2, index, x, y, z) return self:generateCheesed(factors, data, data2, index, x, y, z)
elseif self.type == 'custom' then elseif self.type == 'custom' then
return self:oreFunc(factors, data, data2, index, x, y, z) return self:oreFunc(factors, data, data2, index, x, y, z)