Fix GuiHelper rename for MC 1.19.4 and below

This commit is contained in:
James Seibel
2024-05-20 22:12:09 -05:00
parent c00ee26075
commit 582d998e2e
@@ -18,7 +18,7 @@ public class GuiHelper
public static Button MakeBtn(Component base, int posX, int posZ, int width, int height, Button.OnPress action)
{
#if MC_VER < MC_1_19_4
return new Button(a, b, c, d, base, action);
return new Button(posX, posZ, width, height, base, action);
#else
return Button.builder(base, action).bounds(posX, posZ, width, height).build();
#endif