From 4a564a60c96b36c3175f1aaaaee485fdda8dff0e Mon Sep 17 00:00:00 2001 From: CactusPie Date: Wed, 22 Nov 2023 19:57:23 +0100 Subject: [PATCH] Stop depositing quest items --- src/CactusPie.ContainerQuickLoot/QuickTransferPatch.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CactusPie.ContainerQuickLoot/QuickTransferPatch.cs b/src/CactusPie.ContainerQuickLoot/QuickTransferPatch.cs index 36f359d..26472ab 100644 --- a/src/CactusPie.ContainerQuickLoot/QuickTransferPatch.cs +++ b/src/CactusPie.ContainerQuickLoot/QuickTransferPatch.cs @@ -54,6 +54,12 @@ namespace CactusPie.ContainerQuickLoot { return true; } + + // This check needs to be done only in game - otherwise we will not be able to receive quest rewards! + if (item.QuestItem) + { + return true; + } Player player = GetLocalPlayerFromWorld(gameWorld); var inventory = (Inventory)typeof(Player).GetProperty("Inventory", BindingFlags.NonPublic | BindingFlags.Instance)?.GetValue(player);