Skip to content

Commit 2b189da

Browse files
use the unwrapped amount instead of the capped one
1 parent a791cf7 commit 2b189da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/appeng/util/ConfigMenuInventory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public GenericStack convertToSuitableStack(ItemStack stack) {
106106
// Try items last
107107
var what = AEItemKey.of(stack);
108108
if (inv.isAllowed(what)) {
109-
return new GenericStack(what, stack.getCount());
109+
return new GenericStack(what, unwrapped != null ? unwrapped.amount() : stack.getCount());
110110
}
111111

112112
return null;

0 commit comments

Comments
 (0)