Skip to content

Commit 65008b7

Browse files
committed
Updated To Suit 1.21.11 Changes
1 parent 633d4f8 commit 65008b7

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

src/main/java/net/wurstclient/hacks/ChestEspHack.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ private void renderBoxes(PoseStack matrixStack)
179179
}
180180

181181
String curDimFull = MC.level == null ? "overworld"
182-
: MC.level.dimension().identifier().toString();
182+
: MC.level.dimension().location().toString();
183183
String curDim = MC.level == null ? "overworld"
184-
: MC.level.dimension().identifier().getPath();
184+
: MC.level.dimension().location().getPath();
185185

186186
for(ChestEspGroup group : groups.allGroups)
187187
{

src/main/java/net/wurstclient/lootsearch/LootSearchUtil.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
import java.io.FileReader;
2121
import java.util.ArrayList;
2222
import java.util.HashMap;
23+
import java.util.LinkedHashSet;
2324
import java.util.List;
2425
import java.util.Map;
26+
import java.util.Set;
2527

2628
public final class LootSearchUtil
2729
{

src/main/java/net/wurstclient/util/RenderUtils.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ private static void drawLine(PoseStack.Pose entry, VertexConsumer buffer,
293293
float lineWidth)
294294
{
295295
Vector3f normal = new Vector3f(x2, y2, z2).sub(x1, y1, z1).normalize();
296-
buffer.addVertex(entry, x1, y1, z1).setColor(color)
297-
.setNormal(entry, normal).setLineWidth(lineWidth);
296+
buffer.addVertex(entry, x1, y1, z1).setColor(color).setNormal(entry,
297+
normal.x(), normal.y(), normal.z());
298298

299299
// If the line goes through the screen, add another vertex there. This
300300
// works around a bug in Minecraft's line shader.
@@ -303,24 +303,24 @@ private static void drawLine(PoseStack.Pose entry, VertexConsumer buffer,
303303
if(t > 0 && t < length)
304304
{
305305
Vector3f closeToCam = new Vector3f(normal).mul(t).add(x1, y1, z1);
306-
buffer.addVertex(entry, closeToCam).setColor(color)
307-
.setNormal(entry, normal).setLineWidth(lineWidth);
308-
buffer.addVertex(entry, closeToCam).setColor(color)
309-
.setNormal(entry, normal).setLineWidth(lineWidth);
306+
buffer.addVertex(entry, closeToCam).setColor(color).setNormal(entry,
307+
normal.x(), normal.y(), normal.z());
308+
buffer.addVertex(entry, closeToCam).setColor(color).setNormal(entry,
309+
normal.x(), normal.y(), normal.z());
310310
}
311311

312-
buffer.addVertex(entry, x2, y2, z2).setColor(color)
313-
.setNormal(entry, normal).setLineWidth(lineWidth);
312+
buffer.addVertex(entry, x2, y2, z2).setColor(color).setNormal(entry,
313+
normal.x(), normal.y(), normal.z());
314314
}
315315

316316
public static void drawLine(VertexConsumer buffer, float x1, float y1,
317317
float z1, float x2, float y2, float z2, int color)
318318
{
319319
Vector3f n = new Vector3f(x2, y2, z2).sub(x1, y1, z1).normalize();
320-
buffer.addVertex(x1, y1, z1).setColor(color).setNormal(n.x, n.y, n.z)
321-
.setLineWidth(DEFAULT_LINE_WIDTH);
322-
buffer.addVertex(x2, y2, z2).setColor(color).setNormal(n.x, n.y, n.z)
323-
.setLineWidth(DEFAULT_LINE_WIDTH);
320+
buffer.addVertex(x1, y1, z1).setColor(color).setNormal(n.x(), n.y(),
321+
n.z());
322+
buffer.addVertex(x2, y2, z2).setColor(color).setNormal(n.x(), n.y(),
323+
n.z());
324324
}
325325

326326
public static void drawCurvedLine(PoseStack matrices, List<Vec3> points,

src/main/java/net/wurstclient/util/chunk/ChunkSearcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ static ChunkSnapshot capture(ChunkAccess chunk)
347347
}
348348

349349
int minX = chunkPos.getMinBlockX();
350-
int minY = chunk.getMinY();
350+
int minY = chunk.getMinBuildHeight();
351351
int minZ = chunkPos.getMinBlockZ();
352352
int maxX = chunkPos.getMaxBlockX();
353353
int maxY = ChunkUtils.getHighestNonEmptySectionYOffset(chunk) + 16;

0 commit comments

Comments
 (0)