sync player spawning

This commit is contained in:
brausjonas
2022-05-13 12:34:41 +02:00
parent fee664a936
commit 4e625ea185
7 changed files with 242 additions and 119 deletions
@@ -22,6 +22,8 @@ public class Player : MonoBehaviour
client = world.GetClient();
Cursor.lockState = CursorLockMode.Locked;
camera = GetComponentInChildren<Camera>();
transform.position = new Vector3((byte)transform.position.x,
world.GetHeight((byte)transform.position.x, (byte)transform.position.z) + 2, (byte)transform.position.z);
}
private void FixedUpdate()