Bypass Sorter for normal sort, compat with IoF
This commit is contained in:
@@ -5,7 +5,6 @@ using EFT.UI;
|
|||||||
using EFT.UI.DragAndDrop;
|
using EFT.UI.DragAndDrop;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using SPT.Reflection.Patching;
|
using SPT.Reflection.Patching;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -34,6 +33,11 @@ public static class SortPatches
|
|||||||
[PatchPrefix]
|
[PatchPrefix]
|
||||||
public static bool Prefix(LootItemClass sortingItem, InventoryControllerClass controller, bool simulate, ref GStruct414<SortOperation> __result)
|
public static bool Prefix(LootItemClass sortingItem, InventoryControllerClass controller, bool simulate, ref GStruct414<SortOperation> __result)
|
||||||
{
|
{
|
||||||
|
if (IncludeContainers)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
__result = Sorter.Sort(sortingItem, controller, IncludeContainers, simulate);
|
__result = Sorter.Sort(sortingItem, controller, IncludeContainers, simulate);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,6 +56,4 @@ export class RagfairLinkedSlotItemService extends RagfairLinkedItemService {
|
|||||||
|
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
private getCategoryItems(category: string) {}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user