Archived
0

Merge remote-tracking branch 'origin/forwolk/location-cloning' into dmitriymx/location-refactory

This commit is contained in:
2018-08-08 12:20:45 +03:00
2 changed files with 12 additions and 10 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;
}