Skip to content

Commit

Permalink
fix item graph node calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Meegooo committed Oct 19, 2024
1 parent 97defd7 commit f48e6f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public void postProcess() {
} else if (node instanceof ItemGraphNode itemGraphNode) {
ItemStackWithMetadata pinnedItem = itemGraphNode.getPinnedItem();
String key = getItemStackGUID(pinnedItem.getStack());
int amount = itemGraphNode.getRemainder(key);
int amount = -itemGraphNode.getRemainder(key);
ItemStack stack = withStackSize(pinnedItem.getStack(), amount);
this.calculatedItems.put(pinnedItem.getGridIdx(), stack);
this.calculatedRemainders.put(pinnedItem.getGridIdx(), stack);
Expand Down

0 comments on commit f48e6f4

Please sign in to comment.