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() {
|
public void end() {
|
||||||
if (((BufferBuilderAccessor) bufferBuilder).flywheel$getBuilding()) {
|
if (((BufferBuilderAccessor) bufferBuilder).flywheel$getBuilding()) {
|
||||||
emit();
|
emit();
|
||||||
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resultConsumer = null;
|
resultConsumer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,7 +45,6 @@ class MeshEmitter {
|
||||||
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
|
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
|
||||||
} else if (shade != currentShade) {
|
} else if (shade != currentShade) {
|
||||||
emit();
|
emit();
|
||||||
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
currentShade = shade;
|
currentShade = shade;
|
||||||
|
@ -60,5 +57,7 @@ class MeshEmitter {
|
||||||
resultConsumer.accept(renderType, currentShade, renderedBuffer);
|
resultConsumer.accept(renderType, currentShade, renderedBuffer);
|
||||||
renderedBuffer.close();
|
renderedBuffer.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,6 @@ class MeshEmitter implements VertexConsumer {
|
||||||
public void end() {
|
public void end() {
|
||||||
if (((BufferBuilderAccessor) bufferBuilder).flywheel$getBuilding()) {
|
if (((BufferBuilderAccessor) bufferBuilder).flywheel$getBuilding()) {
|
||||||
emit();
|
emit();
|
||||||
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
|
|
||||||
}
|
}
|
||||||
resultConsumer = null;
|
resultConsumer = null;
|
||||||
}
|
}
|
||||||
|
@ -49,7 +48,6 @@ class MeshEmitter implements VertexConsumer {
|
||||||
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
|
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
|
||||||
} else if (shade != currentShade) {
|
} else if (shade != currentShade) {
|
||||||
emit();
|
emit();
|
||||||
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
currentShade = shade;
|
currentShade = shade;
|
||||||
|
@ -66,6 +64,8 @@ class MeshEmitter implements VertexConsumer {
|
||||||
resultConsumer.accept(renderType, currentShade, renderedBuffer);
|
resultConsumer.accept(renderType, currentShade, renderedBuffer);
|
||||||
renderedBuffer.close();
|
renderedBuffer.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bufferBuilder = new BufferBuilder(byteBufferBuilder, VertexFormat.Mode.QUADS, DefaultVertexFormat.BLOCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue