mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 22:59:23 +01:00
parent
616cedd4bf
commit
9f4a51df18
1 changed files with 151 additions and 153 deletions
|
@ -253,9 +253,8 @@ public class ClientEvents {
|
||||||
var mc = Minecraft.getInstance();
|
var mc = Minecraft.getInstance();
|
||||||
var graphics = event.getGuiGraphics();
|
var graphics = event.getGuiGraphics();
|
||||||
var stack = graphics.pose();
|
var stack = graphics.pose();
|
||||||
if (event.getName() == VanillaGuiLayers.HOTBAR) {
|
|
||||||
var res = mc.getWindow();
|
var res = mc.getWindow();
|
||||||
if (mc.player != null) {
|
if (event.getName() == VanillaGuiLayers.HOTBAR && !mc.options.hideGui && mc.player != null) {
|
||||||
if (!ClientEvents.heldCache.isEmpty()) {
|
if (!ClientEvents.heldCache.isEmpty()) {
|
||||||
var container = ClientEvents.heldCache.getCapability(NaturesAuraAPI.AURA_CONTAINER_ITEM_CAPABILITY, null);
|
var container = ClientEvents.heldCache.getCapability(NaturesAuraAPI.AURA_CONTAINER_ITEM_CAPABILITY, null);
|
||||||
var width = Mth.ceil(container.getStoredAura() / (float) container.getMaxAura() * 80);
|
var width = Mth.ceil(container.getStoredAura() / (float) container.getMaxAura() * 80);
|
||||||
|
@ -433,7 +432,6 @@ public class ClientEvents {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private String createTimeString(int totalTicks) {
|
private String createTimeString(int totalTicks) {
|
||||||
var ticks = totalTicks % 20;
|
var ticks = totalTicks % 20;
|
||||||
|
|
Loading…
Reference in a new issue