Verbs don't open an invisible popup if there's no entities.

This commit is contained in:
Pieter-Jan Briers
2019-08-25 22:53:36 +02:00
parent 4232397aa8
commit 55f9411493

View File

@@ -91,6 +91,11 @@ namespace Content.Client.GameObjects.EntitySystems
var entities = gameScreen.GetEntitiesUnderPosition(args.Coordinates);
if (entities.Count == 0)
{
return;
}
_currentPopup = new VerbPopup();
_currentPopup.OnPopupHide += _closeContextMenu;
foreach (var entity in entities)