Fix energy counter for android being rendered incorrectly

This commit is contained in:
DBotThePony 2025-02-21 21:15:29 +07:00
parent fb8a28d423
commit 1965720053
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -156,10 +156,10 @@ object MatteryGUI {
if (ply.hasEffect(MobEffects.HUNGER)) {
CHARGE_HUNGER_BG.render(guiGraphics, left.toFloat(), top.toFloat())
CHARGE_HUNGER.renderPartial(guiGraphics, left.toFloat() - leftPadding + 80f, top.toFloat(), width = leftPadding)
CHARGE_HUNGER.renderPartial(guiGraphics, left.toFloat() - leftPadding + 81f, top.toFloat(), width = leftPadding, leftRight = false)
} else {
CHARGE_BG.render(guiGraphics, left.toFloat(), top.toFloat())
CHARGE.renderPartial(guiGraphics, left.toFloat() - leftPadding + 80f, top.toFloat(), width = leftPadding)
CHARGE.renderPartial(guiGraphics, left.toFloat() - leftPadding + 81f, top.toFloat(), width = leftPadding, leftRight = false)
}
val formattedPower = mattery.androidEnergy.batteryLevel.formatPower()