This commit is contained in:
hydrant
2021-04-07 23:42:02 +02:00
parent 3f2cdbeea8
commit 0722816765
2 changed files with 5 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ namespace ReallifeGamemode.Server.Extensions
public static bool IsAlive(this Player player)
{
return !player.HasData("isDead") || (bool)player.GetData("isDead") == false;
return !player.HasData("isDead") || player.GetData<bool>("isDead") == false;
}
public static T GetServerData<T>(this Player player, string key, T defaultValue = default)