improve PlayerSelector rendering consistency
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m38s

This commit is contained in:
Daniella / Tove 2024-06-25 22:09:26 +02:00
parent 060c73ee2b
commit acc9856b34
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -102,8 +102,7 @@ public class PlayerSelector extends Feature {
private void renderOptions(int x, int y) {
if(Keyboard.isKeyDown(Keyboard.KEY_LEFT))
mode = Mode.LIST;
mc.fontRenderer.drawStringWithShadow(" Select with enter", x, y, 0xffffffff);
y += mc.fontRenderer.FONT_HEIGHT;
mc.fontRenderer.drawStringWithShadow(" Select with enter", x, y - mc.fontRenderer.FONT_HEIGHT, 0xffffffff);
y += -Math.min(optionCursor - 5, 0) * mc.fontRenderer.FONT_HEIGHT;
for (int i = Math.max(0, optionCursor - 5); i < Math.min(options.size(), optionCursor + 6); i++) {