Cool,
Let me first say thank you for at least investigating. I spent hour and hours on this stupid bug. I am starting to think its packet related somehow. I just made the changes you suggested. I am still having the issue.
I put items in Slots 0, 1, 2 (Hotbar). When I open the container, they appear in slot 33,34,35 (last slots in inventory). It appears to be moving them backwards somehow. Yet, When I click slot 0, the item disappears but does not appear in my hand. If I click slot 33, 34, or 35, nothing happens. Any thoughts?
new code
protected void bindPlayerInventory(IInventory playerInventory, IInventory chestInventory)
{
for (int j = 0; j < 2; ++j)
{
for (int k = 0; k < 3; ++k)
{
this.addSlotToContainer(new Slot(chestInventory, k + j * 3, 8 + k * 18, 18 + j * 18));
}
}
for (int j = 0; j < 3; ++j)
{
for (int k = 0; k < 9; ++k)
{
this.addSlotToContainer(new Slot(playerInventory, k + j * 9 + 9, 133 + k * 18, 122 + j * 18));
}
}
for (int j = 0; j < 9; ++j)
{
this.addSlotToContainer(new Slot(playerInventory, j, 133 + j * 18, 179));
}
}