Fix respawn issue when dlc is not owned

This commit is contained in:
Mister_Nebula 2023-01-02 10:08:17 +00:00
parent b5e071c68e
commit a0d31b76cc

View File

@ -233,6 +233,11 @@ public class RespawnOnDeath : MonoBehaviour
private void ResetCloak()
{
if (EntitlementsManager.IsDlcOwned() != EntitlementsManager.AsyncOwnershipStatus.Owned)
{
return;
}
var cloak = Locator.GetCloakFieldController();
cloak._playerInsideCloak = false;
cloak._playerCloakFactor = 0f;