diff --git a/src/main/java/cactusServer/models/CharacterModelManager.java b/src/main/java/cactusServer/models/CharacterModelManager.java index f9c04e0..d447846 100644 --- a/src/main/java/cactusServer/models/CharacterModelManager.java +++ b/src/main/java/cactusServer/models/CharacterModelManager.java @@ -42,9 +42,10 @@ return characterModels.size(); } - public void addCharacterModel(String fileName) { + public int addCharacterModel(String fileName) { String path = createModelFilePath(MODEL_PATH + fileName); - characterModels.put(nextKey++, loadModel(path)); + characterModels.put(nextKey, loadModel(path)); + return nextKey++; } private String createModelFilePath(String fileName) {