Fix GuiHelper rename for MC 1.19.4 and below
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user