Holding SHIFT with an empty hand will increase the amount of items set

on interfaces and on pattern terminal
This commit is contained in:
Salomão
2021-02-21 20:26:04 -03:00
parent e50eb7965f
commit a7a1a87cd8
2 changed files with 26 additions and 1 deletions
@@ -705,6 +705,16 @@ public abstract class AEBaseGui extends GuiContainer implements IMTModGuiContain
}
}
}
if( slot instanceof SlotFake )
{
final ItemStack stack = ( (SlotFake) slot ).getStack();
if( stack != ItemStack.EMPTY )
{
InventoryAction direction = wheel > 0 ? InventoryAction.PLACE_SINGLE : InventoryAction.PICKUP_SINGLE;
final PacketInventoryAction p = new PacketInventoryAction( direction , slot.slotNumber , 0);
NetworkHandler.instance().sendToServer( p );
}
}
}
protected boolean enableSpaceClicking()