Skip to content

Commit

Permalink
Fix bugs with assembler.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSVK12 committed Apr 10, 2024
1 parent 897384d commit 94200d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public int getActiveItemSlotForSide(Direction dir, ItemStack stack) {
if(itemConnections.get(dir) == Connection.INPUT){
for (int i = 0; i < itemContents.length; i++) {
ItemStack content = itemContents[i];
if (content == null || content.isItemEqual(stack)) {
if (content == null || (content.isItemEqual(stack) && content.stackSize+stack.stackSize <= content.getMaxStackSize())) {
return i;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public int getActiveItemSlotForSide(Direction dir, ItemStack stack) {
if (itemConnections.get(dir) == Connection.INPUT) {
for (int i = 1; i < itemContents.length; i++) {
ItemStack content = itemContents[i];
if (content == null || content.isItemEqual(stack)) {
if (content == null || (content.isItemEqual(stack) && content.stackSize+stack.stackSize <= content.getMaxStackSize())) {
return i;
}
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 94200d1

Please sign in to comment.