handmoney fix

This commit is contained in:
hydrant
2020-04-19 19:24:16 +02:00
parent a31ced3217
commit e6f3399910
2 changed files with 19 additions and 2 deletions

View File

@@ -210,8 +210,13 @@ namespace ReallifeGamemode.Server.Managers
//Alle Spieler
foreach (Player player in NAPI.Pools.GetAllPlayers())
{
Vector3 pos = player.Position;
User user = player.GetUser(saveAll);
if (user == null)
{
continue;
}
Vector3 pos = player.Position;
user.PositionX = pos.X;
user.PositionY = pos.Y;
user.PositionZ = pos.Z;