(d7e59613a) Ignore broken items.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:16:47 +03:00
parent 6bdd0ab8c0
commit 6c777aa91e
11 changed files with 187 additions and 238 deletions
@@ -1236,6 +1236,10 @@ namespace Barotrauma
{
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
}
if (!broken)
{
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
}
ApplyStatusEffects(!waterProof && inWater ? ActionType.InWater : ActionType.NotInWater, deltaTime);
if (body == null || !body.Enabled || !inWater || ParentInventory != null || Removed) { return; }