mojira.dev
MC-183771

Gamemode switcher icons in the F3+F4 menu are not centered

The bug

The icons in the F3+F4 menu are not centered, they are slightly offset. This is most noticeable with the ender eye.

[media]

Linked issues

Attachments

Comments 2

I think it applies to all of the icons, just that the eye of ender is most noticeable.
Edit: Upon further inspection every single icon is farther to the bottom right by 1 pixel. The eye of ender is 2 pixels away from the right and bottom edge of the box, while 3 pixels away from the top and left. The sword is 1 pixel away from the bottom right and 2 away from top left. (Except the map icon which is 2 pixels farther to the right.)

The icons are uncentered because they are in a 25x25 slot, and the icon starts rendering at position x5 y5, but it should start at position x4.5 y4.5.

This has two possible solutions:

1- Make the slot one pixel bigger or smaller.

2- I don't know how to explain it, I don't speak english and I don't use translators, but I can say it's related to net.minecraft.client.renderer.entity.ItemRenderer, floats and integers, and RenderSystem.translatef((float)integer2, (float)integer3, 100.0f + this.blitOffset);

ISRosillo14

slicedlime

Confirmed

Normal

UI

GUI, game-mode-switcher, menu, texture

20w20a, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 3, ..., 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4

20w46a

Retrieved