(a8b3957c6) Fixed nullref exception when selecting categories in the sub editor

This commit is contained in:
Joonas Rikkonen
2019-05-03 13:44:38 +03:00
parent c988016b6f
commit 16e49d10d9
5 changed files with 50 additions and 301 deletions
@@ -211,6 +211,19 @@ namespace Barotrauma.Items.Components
return true;
}
public override void OnItemLoaded()
{
sonar = item.GetComponent<Sonar>();
}
public override bool Select(Character character)
{
if (!CanBeSelected) return false;
user = character;
return true;
}
public override void Update(float deltaTime, Camera cam)
{
networkUpdateTimer -= deltaTime;