mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Fix min_y and height not being updated in noise settings
This commit is contained in:
@@ -58,7 +58,7 @@ function generateDimensionType(ctx: Context) {
|
||||
}
|
||||
|
||||
function generateNoiseSettings(ctx: Context) {
|
||||
if (isUnchanged(ctx, 'seaLevel', 'oceans', 'caves', 'noiseCaves')) return
|
||||
if (isUnchanged(ctx, 'minHeight', 'maxHeight', 'seaLevel', 'oceans', 'caves', 'noiseCaves')) return
|
||||
const defaultFluid = formatIdentifier(ctx.model.oceans)
|
||||
const vanilla = ctx.vanilla['worldgen/noise_settings'].get('overworld')
|
||||
const finalDensity = deepClone(vanilla.noise_router.final_density)
|
||||
@@ -73,6 +73,11 @@ function generateNoiseSettings(ctx: Context) {
|
||||
Name: defaultFluid,
|
||||
Properties: ctx.blockStates.get(defaultFluid)?.default,
|
||||
},
|
||||
noise: {
|
||||
...vanilla.noise,
|
||||
min_y: ctx.model.minHeight,
|
||||
height: ctx.model.maxHeight - ctx.model.minHeight,
|
||||
},
|
||||
noise_router: {
|
||||
...vanilla.noise_router,
|
||||
final_density: finalDensity,
|
||||
|
||||
Reference in New Issue
Block a user