StackUtil.itemsAdded should be >0 when doAdd is false
all current uses of tryAdding(doAdd:false) which access itemsAdded compare the result to 0. NOTE: while this does fix the AutoCraftingTable to accept items, it exposes the infinite recursion bug where it recursivly tries to add 1 item, then recurses without changing the stack size. (i'll do a seperate PR for that bug)
This commit is contained in:
parent
3621d210bb
commit
7a3bbe8f14
1 changed files with 2 additions and 1 deletions
|
@ -235,8 +235,9 @@ public class StackUtil {
|
|||
|
||||
if (doAdd) {
|
||||
stack.stackSize++;
|
||||
itemsAdded++;
|
||||
}
|
||||
itemsAdded++;
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue