Braces in teleportUniform

This commit is contained in:
Spencer 2017-12-28 20:52:30 -05:00 committed by Alexander Meech
parent 2fd85bb73d
commit af965d2a9b

View File

@ -1190,7 +1190,8 @@ public class UtilPlayer
}
public static void teleportUniform(List<Player> players, List<Location> locations, BiConsumer<Player, Location> teleport) {
public static void teleportUniform(List<Player> players, List<Location> locations, BiConsumer<Player, Location> teleport)
{
// Find the number of spaces between each player,
int spacesBetween = Math.max(Math.floorDiv(locations.size(), players.size()), 1);
int spaceIndex = 0;
@ -1204,7 +1205,8 @@ public class UtilPlayer
}
}
public static void teleportUniform(List<Player> players, List<Location> locations) {
public static void teleportUniform(List<Player> players, List<Location> locations)
{
teleportUniform(players, locations, Entity::teleport);
}
}