Build 0.20.11.0

This commit is contained in:
Markus Isberg
2022-12-07 17:40:58 +02:00
parent f5cd0dbd1c
commit a10cc13566
19 changed files with 141 additions and 62 deletions
@@ -238,6 +238,15 @@ namespace Barotrauma
}
}
public bool IsInTargetSlot(Item item)
{
if (container?.Inventory is ItemInventory inventory && TargetSlot is not null)
{
return inventory.IsInSlot(item, (int)TargetSlot);
}
return false;
}
public override void Reset()
{
base.Reset();