We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f243be3 commit 39f4eccCopy full SHA for 39f4ecc
1 file changed
src/app/components/previews/Deepslate.ts
@@ -282,7 +282,7 @@ export class Deepslate {
282
this.settingsCache = settings.noise
283
const randomState = new this.d.RandomState(settings, seed)
284
return randomState.router.finalDensity
285
- } else {
+ } else if (this.isVersion('1.18.2')) {
286
const random = this.d.XoroshiroRandom.create(seed).forkPositional()
287
const settings = this.d.NoiseSettings.fromJson({
288
min_y: minY,
@@ -297,6 +297,8 @@ export class Deepslate {
297
this.settingsCache = settings
298
const originalFn = this.d.DensityFunction.fromJson(state)
299
return originalFn.mapAll(new (this.d.NoiseRouter as any).Visitor(random, settings))
300
+ } else {
301
+ return undefined
302
}
303
304
0 commit comments