Braces in teleportUniform
This commit is contained in:
parent
2fd85bb73d
commit
af965d2a9b
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user