Decouple interactions from hands, cleanup old events, add new fears (#28393)
* ok basic shit * second part * pretend it isn't real it can't hurt you. * 👁️ 👁️ * shadowcommander review
This commit is contained in:
@@ -38,10 +38,14 @@ public sealed partial class GatherableSystem : EntitySystem
|
||||
|
||||
private void OnActivate(Entity<GatherableComponent> gatherable, ref ActivateInWorldEvent args)
|
||||
{
|
||||
if (args.Handled || !args.Complex)
|
||||
return;
|
||||
|
||||
if (gatherable.Comp.ToolWhitelist?.IsValid(args.User, EntityManager) != true)
|
||||
return;
|
||||
|
||||
Gather(gatherable, args.User);
|
||||
args.Handled = true;
|
||||
}
|
||||
|
||||
public void Gather(EntityUid gatheredUid, EntityUid? gatherer = null, GatherableComponent? component = null)
|
||||
|
||||
Reference in New Issue
Block a user