OnWearing statuseffects aren't applied to items contained inside a worn item, dragging an item is canceled if deselecting the inventory the item is in
This commit is contained in:
@@ -178,12 +178,12 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
PlaySound(ActionType.OnWearing, picker.WorldPosition);
|
||||
|
||||
if (containedItems == null) return;
|
||||
for (int j = 0; j < containedItems.Length; j++)
|
||||
{
|
||||
if (containedItems[j] == null) continue;
|
||||
containedItems[j].ApplyStatusEffects(ActionType.OnWearing, deltaTime, picker);
|
||||
}
|
||||
//if (containedItems == null) return;
|
||||
//for (int j = 0; j < containedItems.Length; j++)
|
||||
//{
|
||||
// if (containedItems[j] == null) continue;
|
||||
// containedItems[j].ApplyStatusEffects(ActionType.OnWearing, deltaTime, picker);
|
||||
//}
|
||||
}
|
||||
|
||||
protected override void RemoveComponentSpecific()
|
||||
|
||||
Reference in New Issue
Block a user