Skip to content

Commit

Permalink
fix structure tag loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsjo committed Sep 20, 2023
1 parent 2afa0c1 commit 1602017
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stores/useDatapackStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ export const useDatapackStore = defineStore('datapacks', () => {
promises.push(registerType("worldgen/structure_set", StructureSet.REGISTRY, StructureSet.fromJson))
promises.push(registerType("worldgen/template_pool", StructureTemplatePool.REGISTRY, StructureTemplatePool.fromJson))
promises.push(registerType("structures", Structure.REGISTRY, (arrayBuffer) => () => Structure.fromNbt(NbtFile.read(new Uint8Array(arrayBuffer)).root)))
promises.push(registerTag("tags/worldgen/structure", WorldgenStructure.REGISTRY))
promises.push(registerType("worldgen/biome", WorldgenRegistries.BIOME, () => {return {}}))
promises.push(new Promise(async (resolve) => {
await registerType("worldgen/biome", WorldgenRegistries.BIOME, () => {return {}})
await registerTag("tags/worldgen/biome", WorldgenRegistries.BIOME)
registerType("worldgen/structure", WorldgenStructure.REGISTRY, WorldgenStructure.fromJson)
await registerType("worldgen/structure", WorldgenStructure.REGISTRY, WorldgenStructure.fromJson)
await registerTag("tags/worldgen/structure", WorldgenStructure.REGISTRY)
resolve()
}))
await Promise.all(promises)
Expand Down

0 comments on commit 1602017

Please sign in to comment.