You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code will crash with this error when the inventory is commented out (like here): http://pastebin.com/U0eSd8kG. When the inventory is added things don't crash, but the GUI is broken (no background, button is invisible?).
public class MyGui extends Gui
{
public MyGui()
{
super("myGui");
add(new Button("button", "clickMe!")).onEvent((event, component) -> {
System.out.println("Clicked!");
}, ComponentEvent.ActionEvent.class, NetworkTarget.Side.BOTH);
//add(new PlayerInventory("pInventory"));
}
}
The text was updated successfully, but these errors were encountered:
This code will crash with this error when the inventory is commented out (like here): http://pastebin.com/U0eSd8kG. When the inventory is added things don't crash, but the GUI is broken (no background, button is invisible?).
The text was updated successfully, but these errors were encountered: