@@ -207,6 +207,14 @@ namespace Content.Server.Interaction
|
|||||||
|
|
||||||
private void InteractionActivate(IEntity user, IEntity used)
|
private void InteractionActivate(IEntity user, IEntity used)
|
||||||
{
|
{
|
||||||
|
if (used.TryGetComponent<UseDelayComponent>(out var delayComponent))
|
||||||
|
{
|
||||||
|
if (delayComponent.ActiveDelay)
|
||||||
|
return;
|
||||||
|
|
||||||
|
delayComponent.BeginDelay();
|
||||||
|
}
|
||||||
|
|
||||||
if (!_actionBlockerSystem.CanInteract(user) || ! _actionBlockerSystem.CanUse(user))
|
if (!_actionBlockerSystem.CanInteract(user) || ! _actionBlockerSystem.CanUse(user))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -595,7 +603,7 @@ namespace Content.Server.Interaction
|
|||||||
{
|
{
|
||||||
if (delayComponent.ActiveDelay)
|
if (delayComponent.ActiveDelay)
|
||||||
return;
|
return;
|
||||||
else
|
|
||||||
delayComponent.BeginDelay();
|
delayComponent.BeginDelay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user