Fix InventoryCraftingStation accessing incorrect slots, that can sometimes lead to invalid accesses/crahes with some crafting stuff now.

This commit is contained in:
Bernhard Bonigl committed 2014-10-22 17:37:27 +02:00
1 parent 21c3464575
commit b3632e66bb
1 file changed
+2 -1
@@ -37,7 +37,8 @@ public class InventoryCraftingStation extends InventoryCrafting
@Override
public ItemStack getStackInSlot (int slot)
{
return slot >= this.getSizeInventory() + 1 ? null : logic.getStackInSlot(slot + 1);
// the 9 slots + 1 output slot that's not accessible, we therefore have to add 1 to the slot accessed
return slot > this.getSizeInventory() ? null : logic.getStackInSlot(slot+1);
}
@Override