Prevent borgs from being able to be briefly toggled off. (#32485)
* Prevent borgs from being able to be briefly toggled off. * Use the pre-existing component instead of making an unneccesary duplicate.
This commit is contained in:
@@ -71,7 +71,7 @@ public sealed class ItemToggleSystem : EntitySystem
|
||||
|
||||
private void OnActivateVerb(Entity<ItemToggleComponent> ent, ref GetVerbsEvent<ActivationVerb> args)
|
||||
{
|
||||
if (!args.CanAccess || !args.CanInteract)
|
||||
if (!args.CanAccess || !args.CanInteract || !ent.Comp.OnActivate)
|
||||
return;
|
||||
|
||||
var user = args.User;
|
||||
|
||||
Reference in New Issue
Block a user