(552a3719d) Don't open a door by clicking "select", if the door has any required items (in which case we want to force open it by clicking "use").
This commit is contained in:
@@ -247,7 +247,10 @@ namespace Barotrauma.Items.Components
|
||||
{
|
||||
//can only be selected if the item is broken
|
||||
if (item.Condition <= RepairThreshold) return true; //repairs
|
||||
ForceOpen(ActionType.OnUse);
|
||||
if (requiredItems.None())
|
||||
{
|
||||
ForceOpen(ActionType.OnUse);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user