ModCoderPack/MCPBot-Issues

1.14.4 net.min.cli.gui.wid.but.Button constructor params have been incorrectly named

Closed this issue · 0 comments

Below is a screenshot of the constructor of net.minecraft.client.gui.widget.button.Button

Screen shot

The thing wrong with this is the naming of the parameters: widthIn and heightIn have been named incorrectly, as they are actually the x- and y-coordinates of the button, and p_i51141_3_ and p_i51141_4_ are actual width and height of it.

Edit: p_i51141_1_ (widthIn) and p_i51141_2_ (heightIn) are the x- and y-coordinates of the button on the screen respectively

So my suggestion is:

  • p_i51141_1_ in net.min.cli.gui.wid.but.Button: widthIn -> xPos
  • p_i51141_2_ in net.min.cli.gui.wid.but.Button: heightIn -> yPos