Unstable 1.1.14.0
This commit is contained in:
@@ -331,6 +331,11 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
if (targetSlot < 0) { return false; }
|
||||
//the item should always stay in the Any slot if it's containable in one
|
||||
if (pickable.AllowedSlots.Contains(InvSlotType.Any))
|
||||
{
|
||||
targetInventory.TryPutItem(item, Character, CharacterInventory.AnySlot);
|
||||
}
|
||||
return targetInventory.TryPutItem(item, targetSlot, allowSwapping, allowCombine: false, Character);
|
||||
}
|
||||
else
|
||||
@@ -521,8 +526,5 @@ namespace Barotrauma
|
||||
|
||||
protected virtual void OnStateChanged(AIState from, AIState to) { }
|
||||
protected virtual void OnTargetChanged(AITarget previousTarget, AITarget newTarget) { }
|
||||
|
||||
public virtual void ClientRead(IReadMessage msg) { }
|
||||
public virtual void ServerWrite(IWriteMessage msg) { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user