Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gui crash #5

Open
calclavia opened this issue Aug 2, 2015 · 0 comments
Open

Gui crash #5

calclavia opened this issue Aug 2, 2015 · 0 comments
Labels

Comments

@calclavia
Copy link
Member

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"));
    }
}
@calclavia calclavia added the bug label Aug 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant