I forgot getCount()
This commit is contained in:
@@ -41,8 +41,8 @@ public class AppleHud extends HudElement {
|
|||||||
if (isInEditor()) {
|
if (isInEditor()) {
|
||||||
RenderUtils.drawItem(Items.GOLDEN_APPLE.getDefaultStack(), (int) x, (int) y, scale.get(), true);
|
RenderUtils.drawItem(Items.GOLDEN_APPLE.getDefaultStack(), (int) x, (int) y, scale.get(), true);
|
||||||
} else {
|
} else {
|
||||||
int count = InvUtils.find(Items.GOLDEN_APPLE).count;
|
int count = InvUtils.find(Items.GOLDEN_APPLE).getCount();
|
||||||
count += InvUtils.find(Items.ENCHANTED_GOLDEN_APPLE).count;
|
count += InvUtils.find(Items.ENCHANTED_GOLDEN_APPLE).getCount();
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
RenderUtils.drawItem(new ItemStack(Items.GOLDEN_APPLE, count), (int) x, (int) y, scale.get(), true);
|
RenderUtils.drawItem(new ItemStack(Items.GOLDEN_APPLE, count), (int) x, (int) y, scale.get(), true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ public class CrystalHud extends HudElement {
|
|||||||
|
|
||||||
if (isInEditor()) {
|
if (isInEditor()) {
|
||||||
RenderUtils.drawItem(Items.END_CRYSTAL.getDefaultStack(), (int) x, (int) y, scale.get(), true);
|
RenderUtils.drawItem(Items.END_CRYSTAL.getDefaultStack(), (int) x, (int) y, scale.get(), true);
|
||||||
} else if (InvUtils.find(Items.END_CRYSTAL).count > 0) {
|
} else if (InvUtils.find(Items.END_CRYSTAL).getCount() > 0) {
|
||||||
RenderUtils.drawItem(new ItemStack(Items.END_CRYSTAL, InvUtils.find(Items.END_CRYSTAL).count), (int) x, (int) y, scale.get(), true);
|
RenderUtils.drawItem(new ItemStack(Items.END_CRYSTAL, InvUtils.find(Items.END_CRYSTAL).getCount()), (int) x, (int) y, scale.get(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ public class ExpHud extends HudElement {
|
|||||||
|
|
||||||
if (isInEditor()) {
|
if (isInEditor()) {
|
||||||
RenderUtils.drawItem(Items.EXPERIENCE_BOTTLE.getDefaultStack(), (int) x, (int) y, scale.get(), true);
|
RenderUtils.drawItem(Items.EXPERIENCE_BOTTLE.getDefaultStack(), (int) x, (int) y, scale.get(), true);
|
||||||
} else if (InvUtils.find(Items.EXPERIENCE_BOTTLE).count > 0) {
|
} else if (InvUtils.find(Items.EXPERIENCE_BOTTLE).getCount() > 0) {
|
||||||
RenderUtils.drawItem(new ItemStack(Items.EXPERIENCE_BOTTLE, InvUtils.find(Items.EXPERIENCE_BOTTLE).count), (int) x, (int) y, scale.get(), true);
|
RenderUtils.drawItem(new ItemStack(Items.EXPERIENCE_BOTTLE, InvUtils.find(Items.EXPERIENCE_BOTTLE).getCount()), (int) x, (int) y, scale.get(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,8 +71,8 @@ public class AutoWither extends Module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasEnoughMaterials() {
|
private boolean hasEnoughMaterials() {
|
||||||
if ((InvUtils.find(Items.SOUL_SAND).count < 4 && InvUtils.find(Items.SOUL_SOIL).count < 4) ||
|
if ((InvUtils.find(Items.SOUL_SAND).getCount() < 4 && InvUtils.find(Items.SOUL_SOIL).getCount() < 4) ||
|
||||||
InvUtils.find(Items.WITHER_SKELETON_SKULL).count < 3)
|
InvUtils.find(Items.WITHER_SKELETON_SKULL).getCount() < 3)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ public class PacketFly extends Module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean checkHitBoxes() {
|
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) {
|
private boolean resetCounter(int counter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user