Archived
0

Зачем нам Location.copyOf(), когда есть clone()?

This commit is contained in:
2018-07-11 19:59:26 +03:00
parent aae2035207
commit 6143c88b52
2 changed files with 2 additions and 6 deletions

View File

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