Skip to content

Commit

Permalink
fix: provide a hack to just render blocks all the blocks even with un…
Browse files Browse the repository at this point in the history
…known states for preflat versions
  • Loading branch information
zardoy committed Sep 7, 2024
1 parent a063a0d commit fad9fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prismarine-viewer/viewer/lib/mesher/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ export function getSectionGeometry (sx, sy, sz, world: World) {
models = blockProvider.getAllResolvedModels0_1({
name: block.name,
properties: props,
})!
}, world.preflat)! // fixme! this is a hack (also need a setting for all versions)
if (!models.length) {
console.debug('[mesher] block to render not found', block.name, props)
models = null
Expand Down

0 comments on commit fad9fd6

Please sign in to comment.