Change where the offset is reset (#159)

* Change where the offset is reset
* Debug log and rm dead code
This commit is contained in:
Jason Mitchell authored and GitHub committed 2024-01-07 18:58:48 -08:00
1 parent 869f843e3e
commit 45b20efc45
4 files changed
+10 -151

No files matched your search

@@ -58,10 +58,11 @@ public class BlockRenderer {
final CapturingTessellator tess = (CapturingTessellator) TessellatorManager.get();
tess.startDrawingQuads();
// RenderBlocks adds the subchunk-relative coordinates as the offset, cancel it out here
tess.setOffset(pos);
tess.setOffset(pos);
renderBlocks.renderBlockByRenderType(block, pos.x, pos.y, pos.z);
final List<Quad> quads = TessellatorManager.stopCapturingToPooledQuads();
tess.resetOffset();
for (ModelQuadFacing facing : ModelQuadFacing.VALUES) {
this.random.setSeed(seed);