Make pointing arrows not show up on the context menu (#2252)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading;
|
||||
using Content.Client.State;
|
||||
@@ -129,6 +130,11 @@ namespace Content.Client.GameObjects.EntitySystems
|
||||
continue;
|
||||
}
|
||||
|
||||
if (entity.GetAllComponents<IShowContextMenu>().Any(s => !s.ShowContextMenu(playerEntity)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ContainerHelpers.TryGetContainer(entity, out var container) && !container.ShowContents)
|
||||
{
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user