diff --git a/src/main/java/cactusServer/entities/Instance.java b/src/main/java/cactusServer/entities/Instance.java index 54ab95a..77e36a6 100644 --- a/src/main/java/cactusServer/entities/Instance.java +++ b/src/main/java/cactusServer/entities/Instance.java @@ -137,10 +137,10 @@ } public HashMap createCharacter(String instanceId, String accountURI, String name, - Position3D position, Quaternion3D angle, String modelID) { + Position3D position, Quaternion3D angle, int modelID) { String id = RandomStringGenerator.generateUniqueString(Character.UNIQUE_ID_LENGTH, RandomStringGenerator.ALPHA_NUMERIC, characterMap.keySet()); - Character character = new Character(instanceId, accountURI, name, position, angle, Integer.parseInt(modelID)); + Character character = new Character(instanceId, accountURI, name, position, angle, modelID); characterMap.put(id, character); HashMap returnMap = new HashMap<>(); returnMap.put(id, character);