Merge remote-tracking branch 'origin/forwolk/location-cloning' into dmitriymx/location-refactory
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user