Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Sep 1, 2024
1 parent 1ff7680 commit 73da479
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 43 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ public class RenderSectionManager {
private Vec3 cameraPosition = Vec3.ZERO;

private final boolean translucencySorting;
private final int translucencyBlockRenderDistance;

public RenderSectionManager(ClientLevel world, int renderDistance, CommandList commandList) {
ChunkVertexType vertexType = SodiumClientMod.canUseVanillaVertices() ? ChunkMeshFormats.VANILLA_LIKE : ChunkMeshFormats.COMPACT;
Expand Down Expand Up @@ -125,7 +124,6 @@ public RenderSectionManager(ClientLevel world, int renderDistance, CommandList c
}

this.translucencySorting = SodiumClientMod.canApplyTranslucencySorting();
this.translucencyBlockRenderDistance = Math.min(9216, (renderDistance << 4) * (renderDistance << 4));
}

public void runAsyncTasks() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class FluidRenderer {
private final SinkingVertexBuilder fluidVertexBuilder = new SinkingVertexBuilder();

private final ChunkColorWriter colorEncoder = ChunkColorWriter.get();
;

public FluidRenderer(ColorProviderRegistry colorProviderRegistry, LightPipelineProvider lighters) {
this.quad.setLightFace(Direction.UP);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ private static void blurImpl(int[] src, int[] dst, int width, int height, int ra

for (int x = 0; x < width; x++) {
// The x and y coordinates are transposed to flip the output image
//noinspection SuspiciousNameCombination
dst[ColorBuffer.getIndex(y, x, width)] = averageRGB(red, green, blue, multiplier);

{
Expand Down

0 comments on commit 73da479

Please sign in to comment.