File tree Expand file tree Collapse file tree
common/src/main/java/dev/terminalmc/clientsort/mixin/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,6 +217,8 @@ private void beforeKeyPressed(
217217 return this ::clientsort$sort ;
218218 } else if (inputMatcher .apply (KeybindManager .STACK_FILL_KEY )) {
219219 return this ::clientsort$fillStacks ;
220+ } else if (inputMatcher .apply (KeybindManager .MATCH_TRANSFER_KEY )) {
221+ return this ::clientsort$matchTransfer ;
220222 } else if (inputMatcher .apply (KeybindManager .TRANSFER_KEY )) {
221223 return this ::clientsort$transfer ;
222224 } else {
@@ -274,6 +276,19 @@ private void beforeKeyPressed(
274276 return true ;
275277 }
276278
279+ @ Unique
280+ private boolean clientsort$matchTransfer () {
281+ SingleUseOperator <?> operator = SingleUseOperator .getOperator (
282+ (AbstractContainerScreen <?>) (Object ) this ,
283+ clientsort$screenHelper .get (),
284+ hoveredSlot ,
285+ Operation .MATCH_TRANSFER
286+ );
287+ if (operator != null )
288+ operator .tryMatchTransfer ();
289+ return true ;
290+ }
291+
277292 @ Unique
278293 private boolean clientsort$transfer () {
279294 SingleUseOperator <?> operator = SingleUseOperator .getOperator (
You can’t perform that action at this time.
0 commit comments