Fix door electronics configurator usage (#26888)
* allow usage of network configurator for door electronics * add checks for "allowed" items
This commit is contained in:
@@ -93,6 +93,9 @@ public sealed partial class ActivatableUISystem : EntitySystem
|
||||
if (component.InHandsOnly)
|
||||
return;
|
||||
|
||||
if (component.AllowedItems != null)
|
||||
return;
|
||||
|
||||
args.Handled = InteractUI(args.User, uid, component);
|
||||
}
|
||||
|
||||
@@ -104,6 +107,9 @@ public sealed partial class ActivatableUISystem : EntitySystem
|
||||
if (component.RightClickOnly)
|
||||
return;
|
||||
|
||||
if (component.AllowedItems != null)
|
||||
return;
|
||||
|
||||
args.Handled = InteractUI(args.User, uid, component);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user