From aeb3c1832e217e9881e6cd105421d2bd70c808fe Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 11 Jan 2021 01:24:33 +1100 Subject: [PATCH] Fix clickmaps (#2967) Co-authored-by: Metal Gear Sloth --- Content.Client/GameObjects/Components/ClickableComponent.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Content.Client/GameObjects/Components/ClickableComponent.cs b/Content.Client/GameObjects/Components/ClickableComponent.cs index d55c58affe..5bebcc3940 100644 --- a/Content.Client/GameObjects/Components/ClickableComponent.cs +++ b/Content.Client/GameObjects/Components/ClickableComponent.cs @@ -87,6 +87,8 @@ namespace Content.Client.GameObjects.Components { foreach (var layer in sprite.AllLayers) { + if (!layer.Visible) continue; + if (layer.Texture != null) { if (_clickMapManager.IsOccluding(layer.Texture,