Fixed explosives being directly usable by characters, causing them to explode when left clicking while holding them due to 9dd9425c. See #385

This commit is contained in:
Joonas Rikkonen
2018-04-24 18:00:23 +03:00
parent 1f460c401e
commit 91d6c7b91f
10 changed files with 25 additions and 27 deletions
@@ -28,7 +28,7 @@ namespace Barotrauma.Items.Components
public override bool Use(float deltaTime, Character character = null)
{
return true; //We do the actual throwing in Aim because Use might be used by chems
return characterUsable || character == null; //We do the actual throwing in Aim because Use might be used by chems
}
public override bool SecondaryUse(float deltaTime, Character character = null)