diff --git a/src/main/java/cactusServer/entities/Character.java b/src/main/java/cactusServer/entities/Character.java index 380c7a3..7a6bdc4 100644 --- a/src/main/java/cactusServer/entities/Character.java +++ b/src/main/java/cactusServer/entities/Character.java @@ -155,10 +155,10 @@ } private void updateAreaURI() { - String[] areaURISplit = areaURI.split("/"); // �c�c/instances/{instanceId}/areas/{areaId} - int splitSize = areaURISplit.length; - String instanceId = areaURISplit[splitSize - 3]; - String previousAreaId = areaURISplit[splitSize - 1]; + String[] splitedAreaURI = areaURI.split("/"); // �c�c/instances/{instanceId}/areas/{areaId} + int splitSize = splitedAreaURI.length; + String instanceId = splitedAreaURI[splitSize - 3]; + String previousAreaId = splitedAreaURI[splitSize - 1]; Instance instance = Instances.getInstance().getInstance(instanceId); Area previousArea = instance.getArea(previousAreaId); if (!previousArea.isSurroundingPosition(position)) {