Move chart levels text to left
This commit is contained in:
parent
fb573cb483
commit
e2d4f810d4
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user