When I spawn a generator prefab at a certain position, it stands at position zero on the client until it re-enters the server, and on the server the position is valid, here is the code
private static GameObject SpawnGenerator(Vector3 position, Quaternion rotation)
{
GameObject prefab = NetworkClient.prefabs.Values.FirstOrDefault(g => g.name == "GeneratorStructure");
if (prefab == null)
throw new NullReferenceException("Generator prefab not found");
GameObject copy = UnityEngine.Object.Instantiate(prefab);
copy.transform.position = position;
copy.transform.rotation = rotation;
NetworkServer.Spawn(copy);
return copy;
}
