Archived
0

Sonar: [squid:S2975] Remove this "clone" implementation; use a copy constructor or copy factory instead

This commit is contained in:
2019-02-11 14:33:33 +03:00
parent 667ea373b8
commit d4a3a49b47
8 changed files with 14 additions and 27 deletions

View File

@@ -34,7 +34,7 @@ public class TeleportManager {
teleportId = RAND.nextInt(9999);
} while (teleportMap.containsKey(teleportId));
teleportMap.put(teleportId, new TpData(player, location.clone()));
teleportMap.put(teleportId, new TpData(player, location.copy()));
return teleportId;
}