apple hud now also counts egaps
This commit is contained in:
@@ -40,8 +40,11 @@ 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 if (InvUtils.findItemWithCount(Items.GOLDEN_APPLE).count > 0) {
|
} else {
|
||||||
RenderUtils.drawItem(new ItemStack(Items.GOLDEN_APPLE, InvUtils.findItemWithCount(Items.GOLDEN_APPLE).count), (int) x, (int) y, scale.get(), true);
|
int count = InvUtils.findItemWithCount(Items.GOLDEN_APPLE).count;
|
||||||
|
count += InvUtils.findItemWithCount(Items.ENCHANTED_GOLDEN_APPLE).count;
|
||||||
|
if (count > 0)
|
||||||
|
RenderUtils.drawItem(new ItemStack(Items.GOLDEN_APPLE, count), (int) x, (int) y, scale.get(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user