mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 02:30:44 -05:00
Last small optimization.
This commit is contained in:
parent
aa786f44a0
commit
7650b751ae
@ -1,7 +1,5 @@
|
||||
using Comfort.Common;
|
||||
using EFT;
|
||||
using EFT.UI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
@ -33,6 +31,7 @@ namespace Aki.SinglePlayer.Models.Progression
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Get transmitter from players inventory
|
||||
_transmitter = GetTransmitterFromInventory();
|
||||
|
||||
@ -44,10 +43,12 @@ namespace Aki.SinglePlayer.Models.Progression
|
||||
return;
|
||||
}
|
||||
|
||||
GameObject.Find("Attack").SetActive(false);
|
||||
var places = Singleton<IBotGame>.Instance.BotsController.CoversData.AIPlaceInfoHolder.Places;
|
||||
|
||||
places.First(x => x.name == "Attack").gameObject.SetActive(false);
|
||||
|
||||
// Zone was added in a newer version and the gameObject actually has a \
|
||||
GameObject.Find("CloseZone\\").SetActive(false);
|
||||
places.First(y => y.name == "CloseZone\\").gameObject.SetActive(false);
|
||||
|
||||
// Give access to Lightkeepers door
|
||||
_gameWorld.BufferZoneController.SetPlayerAccessStatus(_player.ProfileId, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user