Skip to content

Commit 8962254

Browse files
committed
Update ItemESP
1 parent be1495d commit 8962254

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ else if(entity instanceof ExperienceOrb xo)
294294
xpOrbs.add(xo);
295295
}
296296

297-
foundCount = Math.min(items.size() + xpOrbs.size(), 999);
298297
return;
299298
}
300299

@@ -316,8 +315,6 @@ else if(entity instanceof ExperienceOrb xo)
316315
else if(entity instanceof ExperienceOrb xo)
317316
xpOrbs.add(xo);
318317
}
319-
// update count for HUD (clamped to 999)
320-
foundCount = Math.min(items.size() + xpOrbs.size(), 999);
321318
}
322319

323320
private void addNearestEntity(PriorityQueue<Entity> heap, Entity entity,
@@ -443,8 +440,6 @@ public void onRender(PoseStack matrixStack, float partialTicks)
443440
.add(EntityUtils.getLerpedBox(e, partialTicks).getCenter());
444441
}
445442
}
446-
foundCount = Math.min(visibleDrops, 999);
447-
448443
// Integrate XP orbs into boxes/ends as synthetic items
449444
for(ExperienceOrb orb : xpOrbs)
450445
{
@@ -502,6 +497,11 @@ public void onRender(PoseStack matrixStack, float partialTicks)
502497
}
503498
}
504499

500+
// update count for HackList from final filtered/drawn data only
501+
int displayedCount =
502+
normalBoxes.size() + specialBoxes.size() + tracedBoxes.size();
503+
foundCount = Math.min(displayedCount, 999);
504+
505505
// Item frames holding special items
506506
if(includeItemFrames.isChecked())
507507
{

0 commit comments

Comments
 (0)