mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user