Skip to content

Commit fb30d6a

Browse files
committed
Disable showMaskGraphic instead
1 parent ac32a67 commit fb30d6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CustomShipLogModes/ShipLogItemList.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ public static void CreatePrefab(ShipLogMapMode mapMode)
5858

5959
try
6060
{
61-
itemList.photo.transform.parent.GetComponent<Image>().enabled = false;
61+
itemList.photo.transform.parent.GetComponent<WorldSpaceMask>().showMaskGraphic = false;
6262
}
6363
catch (Exception e)
6464
{
65-
// Just in case this is removed in next hotfix:
65+
// Just in case this is removed in next hotfix (but it will probably disable the graphic like here):
6666
// https://discord.com/channels/929708786027999262/929787137895854100/1156019963778314291 (Jeff)
6767
CustomShipLogModes.Instance.ModHelper.Console.WriteLine("Couldn't disable mask image, ignoring: " + e, MessageType.Error);
6868
}

0 commit comments

Comments
 (0)