Remove IInteractHand (#7601)

* Plantholder

* Strap

* Finish him

* Mirror review stuff
This commit is contained in:
Rane
2022-04-22 23:49:45 -04:00
committed by GitHub
parent e5bc79a713
commit c022afaec4
8 changed files with 71 additions and 112 deletions

View File

@@ -32,6 +32,7 @@ namespace Content.Server.Botany.Systems
base.Initialize();
SubscribeLocalEvent<PlantHolderComponent, ExaminedEvent>(OnExamine);
SubscribeLocalEvent<PlantHolderComponent, InteractUsingEvent>(OnInteractUsing);
SubscribeLocalEvent<PlantHolderComponent, InteractHandEvent>(OnInteractHand);
}
private void OnExamine(EntityUid uid, PlantHolderComponent component, ExaminedEvent args)
@@ -257,5 +258,10 @@ namespace Content.Server.Botany.Systems
EntityManager.QueueDeleteEntity(args.Used);
}
}
private void OnInteractHand(EntityUid uid, PlantHolderComponent component, InteractHandEvent args)
{
component.DoHarvest(args.User);
}
}
}