Remove more interaction without hands (#8946)
* Remove stack splitting without hands * more no hands crap
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Content.Server.Chemistry.EntitySystems
|
|||||||
|
|
||||||
private void AddSetTransferVerbs(EntityUid uid, SolutionTransferComponent component, GetVerbsEvent<AlternativeVerb> args)
|
private void AddSetTransferVerbs(EntityUid uid, SolutionTransferComponent component, GetVerbsEvent<AlternativeVerb> args)
|
||||||
{
|
{
|
||||||
if (!args.CanAccess || !args.CanInteract || !component.CanChangeTransferAmount)
|
if (!args.CanAccess || !args.CanInteract || !component.CanChangeTransferAmount || args.Hands == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!EntityManager.TryGetComponent<ActorComponent?>(args.User, out var actor))
|
if (!EntityManager.TryGetComponent<ActorComponent?>(args.User, out var actor))
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ namespace Content.Server.Foldable
|
|||||||
|
|
||||||
private void AddFoldVerb(EntityUid uid, FoldableComponent component, GetVerbsEvent<AlternativeVerb> args)
|
private void AddFoldVerb(EntityUid uid, FoldableComponent component, GetVerbsEvent<AlternativeVerb> args)
|
||||||
{
|
{
|
||||||
if (!args.CanAccess || !args.CanInteract || !CanToggleFold(uid, component))
|
if (!args.CanAccess || !args.CanInteract || args.Hands == null || !CanToggleFold(uid, component))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
AlternativeVerb verb = new()
|
AlternativeVerb verb = new()
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ namespace Content.Server.Morgue
|
|||||||
|
|
||||||
private void AddCremateVerb(EntityUid uid, CrematoriumEntityStorageComponent component, GetVerbsEvent<AlternativeVerb> args)
|
private void AddCremateVerb(EntityUid uid, CrematoriumEntityStorageComponent component, GetVerbsEvent<AlternativeVerb> args)
|
||||||
{
|
{
|
||||||
if (!args.CanAccess || !args.CanInteract || component.Cooking || component.Open)
|
if (!args.CanAccess || !args.CanInteract || args.Hands == null || component.Cooking || component.Open )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
AlternativeVerb verb = new();
|
AlternativeVerb verb = new();
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ namespace Content.Server.Stack
|
|||||||
|
|
||||||
private void OnStackAlternativeInteract(EntityUid uid, StackComponent stack, GetVerbsEvent<AlternativeVerb> args)
|
private void OnStackAlternativeInteract(EntityUid uid, StackComponent stack, GetVerbsEvent<AlternativeVerb> args)
|
||||||
{
|
{
|
||||||
if (!args.CanAccess || !args.CanInteract)
|
if (!args.CanAccess || !args.CanInteract || args.Hands == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
AlternativeVerb halve = new()
|
AlternativeVerb halve = new()
|
||||||
|
|||||||
Reference in New Issue
Block a user