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
@@ -699,8 +699,23 @@ public abstract class AEBaseContainer extends Container
is.setCount( 1 );
s.putStack( is );
}
else
{
final ItemStack is = s.getStack().copy();
if (is.getCount() < is.getMaxStackSize())
is.grow( 1 );
s.putStack( is );
}
break;
case PICKUP_SINGLE:
if( hand.isEmpty() )
{
final ItemStack is = s.getStack().copy();
if (is.getCount() > 1)
is.shrink( 1 );
s.putStack( is );
}
break;
case SPLIT_OR_PLACE_SINGLE:
ItemStack is = s.getStack();