Skip to content

Commit

Permalink
Remove duplicate special renderer for items: bell, sign and hanging s…
Browse files Browse the repository at this point in the history
…ign (#37)
  • Loading branch information
jacobsjo authored Oct 2, 2024
1 parent c039e73 commit 1b64dff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/render/SpecialRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,9 @@ export namespace SpecialRenderers {
mat4.translate(t, t, [0, 0, -16])
return headMesh.merge(footMesh.transform(t))
}

if (item.is('bell') || SignRenderers.has(item.id.toString()) || HangingSignRenderers.has(item.id.toString())) {
return new Mesh()
}
// Assumes block and item ID are the same
return getMesh(new BlockState(item.id), atlas, Cull.none())
}
Expand Down

0 comments on commit 1b64dff

Please sign in to comment.