Fix incorrect filter when placing items on bundles. Closes #10902

This commit is contained in:
LexManos committed 2026-10-16 13:40:27 -07:00
1 parent c328912074
commit 55f03a2d86
1 file changed
+1 -1
@@ -4,7 +4,7 @@
public boolean overrideOtherStackedOnMe(
final ItemStack self, final ItemStack other, final Slot slot, final ClickAction clickAction, final Player player, final SlotAccess carriedItem
) {
+ if (other.getCount() != 1) return false;
+ if (self.getCount() != 1) return false; // Forge: prevent insertions when we're stacked, which would cause duplication when unstacked+
if (clickAction == ClickAction.PRIMARY && other.isEmpty()) {
toggleSelectedItem(self, -1);
return false;