Skip to content

Commit

Permalink
item limit depends on actual stack size
Browse files Browse the repository at this point in the history
  • Loading branch information
repo-alt committed Dec 17, 2021
1 parent a01d0b4 commit 4815c81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public IAEItemStack injectItems(final IAEItemStack input, final Actionable mode,
{
return input;
}
long max = this.barrel.getMaxStoredCount();
long max = ((long)this.barrel.getStorage().getMaxStacks()) * input.getItemStack().getMaxStackSize();
if( input.getStackSize() <= max || barrel.getStorage().isVoid() )
{
if( mode == Actionable.MODULATE )
Expand Down

0 comments on commit 4815c81

Please sign in to comment.