diff --git a/src/main/java/cactusServer/entities/Player.java b/src/main/java/cactusServer/entities/Player.java index 2841ef7..108e71a 100644 --- a/src/main/java/cactusServer/entities/Player.java +++ b/src/main/java/cactusServer/entities/Player.java @@ -141,9 +141,8 @@ for (String areaId : instance.getAreaIdSet()) { Area area = instance.getArea(areaId); if (area.isSurroundingPosition(position)) { - int subStringEndIndex = areaURI.length() - Area.UNIQUE_ID_LENGTH; - StringBuilder newAreaURI = new StringBuilder(); - return newAreaURI.append(areaURI.substring(0, subStringEndIndex)).append(areaId).toString(); + int subStringEndIndex = areaURI.length() - Area.UNIQUE_ID_LENGTH; // �c/{instanceId}/areas/ �܂� + return areaURI.substring(0, subStringEndIndex) + areaId; } } return "";