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
@@ -953,6 +953,12 @@ namespace Barotrauma
slots[index].RemoveItem(item);
}
public bool IsInSlot(Item item, int index)
{
if (index < 0 || index >= slots.Length) { return false; }
return slots[index].Contains(item);
}
public void SharedRead(IReadMessage msg, out List<ushort>[] newItemIds)
{
byte slotCount = msg.ReadByte();