Prevent drag and dropping if the user is currenly unable to perform interactions. (fixes #5144) (#5196)
This commit is contained in:
@@ -139,6 +139,9 @@ namespace Content.Server.Interaction
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_actionBlockerSystem.CanInteract(userEntity))
|
||||
return;
|
||||
|
||||
if (!EntityManager.TryGetEntity(msg.Dropped, out var dropped))
|
||||
return;
|
||||
if (!EntityManager.TryGetEntity(msg.Target, out var target))
|
||||
|
||||
Reference in New Issue
Block a user