Fixes Index OOB error
This commit is contained in:
parent
f1f4f1bdde
commit
fbd0fa7cda
1 changed files with 7 additions and 5 deletions
|
@ -45,13 +45,15 @@ public class TileAssemblyAdvancedWorkbench extends TileEntity implements IInvent
|
|||
|
||||
@Override
|
||||
public ItemStack getStackInSlot(int par1) {
|
||||
if (tempStacks!=null && par1>=0) {
|
||||
return tempStacks[bindings[par1]];
|
||||
} else if (tempStacks!=null && par1<0) {
|
||||
if(tempStacks != null) {
|
||||
if(par1 >= 0 && par1 < 9) {
|
||||
if(bindings[par1] >= 0) {
|
||||
return tempStacks[bindings[par1]];
|
||||
}
|
||||
}
|
||||
return null;
|
||||
} else {
|
||||
return craftingSlots.getStackInSlot(par1);
|
||||
}
|
||||
return craftingSlots.getStackInSlot(par1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue