Prevent drag and dropping if the user is currenly unable to perform interactions. (fixes #5144) (#5196)

This commit is contained in:
Antoine Chavasse
2021-11-07 01:05:51 +01:00
committed by GitHub
parent a4bdfd2b52
commit afeb22ccb2
2 changed files with 10 additions and 0 deletions

View File

@@ -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))