mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Fix InventoryCraftingStation accessing incorrect slots, that can sometimes lead to invalid accesses/crahes with some crafting stuff now.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user