Handle failed transfers
This commit is contained in:
parent
e13f962d8d
commit
2390ad88fa
@ -4,7 +4,7 @@ using JetBrains.Annotations;
|
|||||||
|
|
||||||
namespace CactusPie.ContainerQuickLoot
|
namespace CactusPie.ContainerQuickLoot
|
||||||
{
|
{
|
||||||
[BepInPlugin("com.cactuspie.containerquikloot", "CactusPie.ContainerQuickLoot", "1.4.0")]
|
[BepInPlugin("com.cactuspie.containerquikloot", "CactusPie.ContainerQuickLoot", "1.4.1")]
|
||||||
public class ContainerQuickLootPlugin : BaseUnityPlugin
|
public class ContainerQuickLootPlugin : BaseUnityPlugin
|
||||||
{
|
{
|
||||||
internal static ConfigEntry<bool> EnableForCtrlClick { get; set; }
|
internal static ConfigEntry<bool> EnableForCtrlClick { get; set; }
|
||||||
|
@ -235,6 +235,12 @@ namespace CactusPie.ContainerQuickLoot
|
|||||||
}
|
}
|
||||||
|
|
||||||
GStruct375<GClass2599> mergeResult = GClass2585.Merge(item, targetItem, controller, simulate);
|
GStruct375<GClass2599> mergeResult = GClass2585.Merge(item, targetItem, controller, simulate);
|
||||||
|
|
||||||
|
if (!mergeResult.Succeeded)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
result = new GStruct375<GInterface275>(mergeResult.Value);
|
result = new GStruct375<GInterface275>(mergeResult.Value);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user