I forgot getCount()

This commit is contained in:
StormyBytes
2021-06-07 21:39:43 +07:00
parent 48e19964f2
commit 54e38af5b5
5 changed files with 9 additions and 9 deletions

View File

@@ -41,8 +41,8 @@ public class AppleHud extends HudElement {
if (isInEditor()) {
RenderUtils.drawItem(Items.GOLDEN_APPLE.getDefaultStack(), (int) x, (int) y, scale.get(), true);
} else {
int count = InvUtils.find(Items.GOLDEN_APPLE).count;
count += InvUtils.find(Items.ENCHANTED_GOLDEN_APPLE).count;
int count = InvUtils.find(Items.GOLDEN_APPLE).getCount();
count += InvUtils.find(Items.ENCHANTED_GOLDEN_APPLE).getCount();
if (count > 0)
RenderUtils.drawItem(new ItemStack(Items.GOLDEN_APPLE, count), (int) x, (int) y, scale.get(), true);
}

View File

@@ -42,8 +42,8 @@ public class CrystalHud extends HudElement {
if (isInEditor()) {
RenderUtils.drawItem(Items.END_CRYSTAL.getDefaultStack(), (int) x, (int) y, scale.get(), true);
} else if (InvUtils.find(Items.END_CRYSTAL).count > 0) {
RenderUtils.drawItem(new ItemStack(Items.END_CRYSTAL, InvUtils.find(Items.END_CRYSTAL).count), (int) x, (int) y, scale.get(), true);
} else if (InvUtils.find(Items.END_CRYSTAL).getCount() > 0) {
RenderUtils.drawItem(new ItemStack(Items.END_CRYSTAL, InvUtils.find(Items.END_CRYSTAL).getCount()), (int) x, (int) y, scale.get(), true);
}
}
}

View File

@@ -40,8 +40,8 @@ public class ExpHud extends HudElement {
if (isInEditor()) {
RenderUtils.drawItem(Items.EXPERIENCE_BOTTLE.getDefaultStack(), (int) x, (int) y, scale.get(), true);
} else if (InvUtils.find(Items.EXPERIENCE_BOTTLE).count > 0) {
RenderUtils.drawItem(new ItemStack(Items.EXPERIENCE_BOTTLE, InvUtils.find(Items.EXPERIENCE_BOTTLE).count), (int) x, (int) y, scale.get(), true);
} else if (InvUtils.find(Items.EXPERIENCE_BOTTLE).getCount() > 0) {
RenderUtils.drawItem(new ItemStack(Items.EXPERIENCE_BOTTLE, InvUtils.find(Items.EXPERIENCE_BOTTLE).getCount()), (int) x, (int) y, scale.get(), true);
}
}
}

View File

@@ -71,8 +71,8 @@ public class AutoWither extends Module {
}
private boolean hasEnoughMaterials() {
if ((InvUtils.find(Items.SOUL_SAND).count < 4 && InvUtils.find(Items.SOUL_SOIL).count < 4) ||
InvUtils.find(Items.WITHER_SKELETON_SKULL).count < 3)
if ((InvUtils.find(Items.SOUL_SAND).getCount() < 4 && InvUtils.find(Items.SOUL_SOIL).getCount() < 4) ||
InvUtils.find(Items.WITHER_SKELETON_SKULL).getCount() < 3)
return false;
return true;

View File

@@ -179,7 +179,7 @@ public class PacketFly extends Module {
}
private boolean checkHitBoxes() {
return !(mc.world.getBlockCollisions(mc.player, mc.player.getBoundingBox().expand(-0.0625,-0.0625,-0.0625)).count() == 0);
return !(mc.world.getBlockCollisions(mc.player, mc.player.getBoundingBox().expand(-0.0625,-0.0625,-0.0625)).getCount()() == 0);
}
private boolean resetCounter(int counter) {