9 mai 2017, 17:30

Ton inventaire à 18 slots :
private ItemStack[] contents = new ItemStack[18];
Or dans ton container tu mets 9x3 slots (27)

for (int i = 0; i < 3; ++i)
{
for (int j = 0; j < 9; ++j)
{
this.addSlotToContainer(new Slot(tile, j + i * 9, 8 + j * 18, 18 + i * 18));
}
}

Donc forcement ça fait un ArrayIndexOutOfBoundsException