Controllers can't focus the camera on broken items (none of the current focusable items can break but may be useful for modders). Closes #590
This commit is contained in:
@@ -245,6 +245,7 @@ namespace Barotrauma.Items.Components
|
||||
|
||||
for (int i = item.LastSentSignalRecipients.Count - 1; i >= 0; i--)
|
||||
{
|
||||
if (item.LastSentSignalRecipients[i].Condition <= 0.0f) continue;
|
||||
if (item.LastSentSignalRecipients[i].Prefab.FocusOnSelected)
|
||||
{
|
||||
return item.LastSentSignalRecipients[i];
|
||||
|
||||
Reference in New Issue
Block a user