mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Fix incorrect filter when placing items on bundles. Closes #10902
This commit is contained in:
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;
|
||||
Reference in new issue
Block a user