#Block entity screen that is higher then normal gui height causes elements to move on screen resize

6 messages · Page 1 of 1 (latest)

runic dagger
#

I have this bug where the screen of a block i created called 'Crystal Infuser' has it's elements move on the first time i resize the minecraft screen, causing elements like the titles and slots to be in the wrong heights. the height of this gui screen is 224, unlike the usual 166 minecraft uses. in my case, when i open the gui the titles are not located properly but the slots are, and when i change the screen size it updates and then the titles are fine but the slots are not. at first the titles did not fix themselves but i made it so that they update in the drawForeground. Can someone help?

icy granite
#

In your screen constructor did you change backgroundHeight and playerInventoryTitleY?

runic dagger
#

I did

runic dagger
#

wait no i put them in the init method

#

OHHHHHHHHHHH

#

thanks man! that solved the titles problem🙏