greedy stack transfers

This commit is contained in:
Tyfon
2024-06-22 14:03:24 -07:00
parent f4b7fae31d
commit dff100db30
7 changed files with 245 additions and 54 deletions

View File

@@ -30,6 +30,8 @@ namespace UIFixes
private static readonly EOwnerType[] BannedOwnerTypes = [EOwnerType.Mail, EOwnerType.Trader];
public static bool BlockSwaps = false;
public static void Enable()
{
new DetectSwapSourceContainerPatch().Enable();
@@ -57,6 +59,11 @@ namespace UIFixes
return false;
}
if (BlockSwaps)
{
return false;
}
var wrappedOperation = new R.GridViewCanAcceptOperation(operation);
if (InHighlight || itemContext == null || targetItemContext == null || wrappedOperation.Succeeded)