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

addPlayerSlots #8

Open
zenmogwai opened this issue Aug 28, 2016 · 0 comments
Open

addPlayerSlots #8

zenmogwai opened this issue Aug 28, 2016 · 0 comments

Comments

@zenmogwai
Copy link

The addPlayerSlots method in the TestContainer class looks like it needs to have the index bumped down by one to stay in sync with the player inventory. +10 throws everything off by one slot.

    private void addPlayerSlots(IInventory playerInventory) {
        // Slots for the main inventory
        for (int row = 0; row < 3; ++row) {
            for (int col = 0; col < 9; ++col) {
                int x = 9 + col * 18;
                int y = row * 18 + 70;
                //this.addSlotToContainer(new Slot(playerInventory, col + row * 9 + 10, x, y));
                this.addSlotToContainer(new Slot(playerInventory, col + row * 9 + 9, x, y));
            }
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant