Skip to content

Commit

Permalink
new place
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Aug 22, 2024
1 parent 25c1391 commit 26538e2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public Stack(final ItemStack stack, final boolean matchDamage, final boolean mat
this.matchOreDic = matchOreDic;
this.result = result;
this.count = count;
this.minCount = minCount;
this.minCount = Math.min(minCount, count);
this.canBeResolvedByBuilding = canBeResolvedByBuilding;
}

Expand Down Expand Up @@ -342,7 +342,7 @@ public boolean matchDamage()
@Override
public IDeliverable copyWithCount(final int newCount)
{
return new Stack(this.theStack, this.matchDamage, this.matchNBT, this.matchOreDic, this.result, newCount, Math.min(newCount, this.minCount));
return new Stack(this.theStack, this.matchDamage, this.matchNBT, this.matchOreDic, this.result, newCount, this.minCount);
}

@NotNull
Expand Down

0 comments on commit 26538e2

Please sign in to comment.