mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
Only include relevant versions in page title
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { App, Models } from './App';
|
||||
import { App, checkVersion, Models } from './App';
|
||||
import { View } from './views/View';
|
||||
import { Home } from './views/Home'
|
||||
import { FieldSettings } from './views/FieldSettings'
|
||||
@@ -42,7 +42,10 @@ const router = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
document.title = locale('title.suffix', [title])
|
||||
const versions = config.versions
|
||||
.filter(v => checkVersion(v.id, App.model.get()?.minVersion))
|
||||
.map(v => v.id).join(', ')
|
||||
document.title = `${title} Minecraft ${versions}`
|
||||
App.mobilePanel.set(panel)
|
||||
const view = new View()
|
||||
view.mount(target, renderer(view), true)
|
||||
|
||||
@@ -203,6 +203,14 @@ export class DecoratorPreview extends Preview {
|
||||
}
|
||||
return new Array(count).fill(pos)
|
||||
},
|
||||
count_multilayer: (config, pos) => {
|
||||
return new Array(this.sampleUniformInt(config?.count ?? 1)).fill(pos)
|
||||
.map(p => [
|
||||
p[0] + this.nextInt(16),
|
||||
p[1],
|
||||
p[2] + this.nextInt(16)
|
||||
])
|
||||
},
|
||||
count_noise: (config, pos) => {
|
||||
const noise = this.biomeInfoNoise.getValue(pos[0] / 200, 0, pos[2] / 200)
|
||||
const count = noise < config.noise_level ? config.below_noise : config.above_noise
|
||||
|
||||
Reference in New Issue
Block a user