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.

(cherry picked from commit f79de12509002743dcae02984b99d60656f32025)
This commit is contained in:
BramvanZijp
2024-10-01 17:13:59 +02:00
committed by Spatison
parent 85bd0bede8
commit da0eec1a6c

View File

@@ -76,7 +76,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;