Skip to content

Commit

Permalink
Merge branch 'master' into loadPluginsInParallel
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss authored Feb 8, 2025
2 parents 8e83df7 + 7503e1d commit ea3453b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/codechicken/nei/PositionedStack.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ public void setMaxSize(int i) {
}

public PositionedStack copy() {
PositionedStack pStack = new PositionedStack(Arrays.asList(items), relx, rely, false);
PositionedStack pStack = new PositionedStack(
Arrays.stream(this.items).map(ItemStack::copy).toArray(ItemStack[]::new),
relx,
rely,
false);
pStack.permutated = this.permutated;
return pStack;
}
Expand Down

0 comments on commit ea3453b

Please sign in to comment.