Add whitelist check to hand gathering (#19053)

This commit is contained in:
metalgearsloth
2023-08-13 17:07:33 +10:00
committed by GitHub
parent 3cea7f23cf
commit 9bd47c0492

View File

@@ -37,6 +37,9 @@ public sealed partial class GatherableSystem : EntitySystem
private void OnActivate(EntityUid uid, GatherableComponent component, ActivateInWorldEvent args)
{
if (component.ToolWhitelist?.IsValid(args.User, EntityManager) != true)
return;
Gather(uid, args.User, component);
}