diff --git a/src/main/java/cactusServer/entities/Character.java b/src/main/java/cactusServer/entities/Character.java index 2112b1c..01f8cb2 100644 --- a/src/main/java/cactusServer/entities/Character.java +++ b/src/main/java/cactusServer/entities/Character.java @@ -141,17 +141,17 @@ return ""; } - public void update(Position3D position, Quaternion3D angle, String modelID, String areaURI) { + public void update(Position3D position, Quaternion3D angle, int modelID) { setPosition(position); setAngle(angle); - if (modelID != null) { - setModelID(Integer.parseInt(modelID)); - } - if (areaURI != null) { - setAreaURI(areaURI); - } else { - updateAreaURI(); - } + setModelID(modelID); + updateAreaURI(); + } + + public void update(Position3D position, Quaternion3D angle, String areaURI) { + setPosition(position); + setAngle(angle); + setAreaURI(areaURI); } private void updateAreaURI() {