Move chart levels text to left

This commit is contained in:
DBotThePony 2024-10-11 14:10:13 +07:00
parent fb573cb483
commit e2d4f810d4
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -88,7 +88,8 @@ class EnergyCounterRenderer(private val context: BlockEntityRendererProvider.Con
1f to TextComponent(""),
0f to Decimal.ZERO.formatPower(),
),
font = font
font = font,
textGravity = RenderGravity.TOP_LEFT
)
} else {
normalized = FloatArray(chart.width) { (chart[it] / maximum).toFloat() }
@ -102,7 +103,8 @@ class EnergyCounterRenderer(private val context: BlockEntityRendererProvider.Con
levelLabels = ChartLevelLabels(
labels = map,
font = font
font = font,
textGravity = RenderGravity.TOP_LEFT
)
}