diff --git a/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java b/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java
index bcebde6f3d6198ae7ecba5185c4d3ff445ccabe6..92c81716c3b13c1007e2b3758ae342f5aa3fb82d 100644 (file)
public int[] inventory;
public boolean flyMode = false;
- public Player(int x, int y) {
- position = new Vector2(x, y);
+ public Player(Vector2 spawnPoint) {
+ position = spawnPoint.cpy();
moveX = new Vector2(0, 0);
moveY = new Vector2(0, 0);
width = 4;