From fa57f34c47d42f3a7b8bfccf1981ff312e219860 Mon Sep 17 00:00:00 2001 From: IThundxr Date: Mon, 14 Oct 2024 17:53:30 -0400 Subject: [PATCH] formatting changes --- .../engine_room/flywheel/lib/model/baked/MeshEmitter.java | 5 ++--- .../engine_room/flywheel/lib/model/baked/MeshEmitter.java | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/fabric/src/lib/java/dev/engine_room/flywheel/lib/model/baked/MeshEmitter.java b/fabric/src/lib/java/dev/engine_room/flywheel/lib/model/baked/MeshEmitter.java index 9f0c7e2d0..c858bf6a1 100644 --- a/fabric/src/lib/java/dev/engine_room/flywheel/lib/model/baked/MeshEmitter.java +++ b/fabric/src/lib/java/dev/engine_room/flywheel/lib/model/baked/MeshEmitter.java @@ -31,9 +31,7 @@ class MeshEmitter { public void end() { if (((BufferBuilderAccessor) bufferBuilder).flywheel$getBuilding()) { emit(); - bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK); } - resultConsumer = null; } @@ -47,7 +45,6 @@ class MeshEmitter { bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK); } else if (shade != currentShade) { emit(); - bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK); } currentShade = shade; @@ -60,5 +57,7 @@ class MeshEmitter { resultConsumer.accept(renderType, currentShade, renderedBuffer); renderedBuffer.close(); } + + bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK); } } diff --git a/forge/src/lib/java/dev/engine_room/flywheel/lib/model/baked/MeshEmitter.java b/forge/src/lib/java/dev/engine_room/flywheel/lib/model/baked/MeshEmitter.java index 204df5b35..7a93e9e26 100644 --- a/forge/src/lib/java/dev/engine_room/flywheel/lib/model/baked/MeshEmitter.java +++ b/forge/src/lib/java/dev/engine_room/flywheel/lib/model/baked/MeshEmitter.java @@ -34,7 +34,6 @@ class MeshEmitter implements VertexConsumer { public void end() { if (((BufferBuilderAccessor) bufferBuilder).flywheel$getBuilding()) { emit(); - bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK); } resultConsumer = null; } @@ -49,7 +48,6 @@ class MeshEmitter implements VertexConsumer { bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK); } else if (shade != currentShade) { emit(); - bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK); } currentShade = shade; @@ -66,6 +64,8 @@ class MeshEmitter implements VertexConsumer { resultConsumer.accept(renderType, currentShade, renderedBuffer); renderedBuffer.close(); } + + bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK); } @Override