mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-23 11:27:54 +01:00
formatting changes
This commit is contained in:
parent
008b09891a
commit
fa57f34c47
2 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue