Sonar: [squid:S2975] Remove this "clone" implementation; use a copy constructor or copy factory instead
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user