Fix custom noise settings not working in biome preview

This commit is contained in:
Misode
2022-07-10 22:38:55 +02:00
parent d26ddb4676
commit 414a361c65

View File

@@ -109,7 +109,7 @@ export async function densityFunction(state: any, img: ImageData, options: Noise
}
export function getProjectData(project: Project) {
return Object.fromEntries(['worldgen/noise', 'worldgen/density_function'].map(type => {
return Object.fromEntries(['worldgen/noise_settings', 'worldgen/noise', 'worldgen/density_function'].map(type => {
const resources = Object.fromEntries(
project.files.filter(file => file.type === type)
.map<[string, unknown]>(file => [file.id, file.data])