Skip to content

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Oct 14, 2024
1 parent 008b098 commit fa57f34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ public void prepare(BakedModelBufferer.ResultConsumer resultConsumer) {
public void end() {
if (((BufferBuilderAccessor) bufferBuilder).flywheel$getBuilding()) {
emit();
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
}

resultConsumer = null;
}

Expand All @@ -47,7 +45,6 @@ void prepareForGeometry(boolean shade) {
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;
Expand All @@ -60,5 +57,7 @@ void emit() {
resultConsumer.accept(renderType, currentShade, renderedBuffer);
renderedBuffer.close();
}

bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public void prepare(BakedModelBufferer.ResultConsumer resultConsumer) {
public void end() {
if (((BufferBuilderAccessor) bufferBuilder).flywheel$getBuilding()) {
emit();
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
}
resultConsumer = null;
}
Expand All @@ -49,7 +48,6 @@ void prepareForGeometry(boolean shade) {
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;
Expand All @@ -66,6 +64,8 @@ private void emit() {
resultConsumer.accept(renderType, currentShade, renderedBuffer);
renderedBuffer.close();
}

bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
}

@Override
Expand Down

0 comments on commit fa57f34

Please sign in to comment.