Skip to content

Commit

Permalink
Merge branch 'master' into 25w09b
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Mar 4, 2025
2 parents 7426b19 + 5cd909a commit 0fd733f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/main/java/net/wurstclient/hacks/NewChunksHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.awt.Color;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import net.minecraft.client.util.math.MatrixStack;
Expand Down Expand Up @@ -162,7 +163,7 @@ public void onUpdate()
if(showReasons.isChecked())
renderer.updateBuffer(1, reasonsRenderer.getLayer(),
buffer -> reasonsRenderer.buildBuffer(buffer,
newChunkReasons));
List.copyOf(newChunkReasons)));
}

if(showSetting.includesOld())
Expand All @@ -173,7 +174,7 @@ public void onUpdate()
if(showReasons.isChecked())
renderer.updateBuffer(3, reasonsRenderer.getLayer(),
buffer -> reasonsRenderer.buildBuffer(buffer,
oldChunkReasons));
List.copyOf(oldChunkReasons)));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
package net.wurstclient.hacks.newchunks;

import java.util.Set;
import java.util.List;

import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.VertexConsumer;
Expand All @@ -28,7 +28,7 @@ public NewChunksReasonsRenderer(SliderSetting drawDistance)
this.drawDistance = drawDistance;
}

public void buildBuffer(VertexConsumer buffer, Set<BlockPos> reasons)
public void buildBuffer(VertexConsumer buffer, List<BlockPos> reasons)
{
ChunkPos camChunkPos = new ChunkPos(RenderUtils.getCameraBlockPos());
RegionPos region = RegionPos.of(camChunkPos);
Expand Down

0 comments on commit 0fd733f

Please sign in to comment.