Stop depositing quest items

This commit is contained in:
CactusPie 2023-11-22 19:57:23 +01:00
parent d64bd7b1f7
commit 4a564a60c9

View File

@ -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);