mirror of
https://github.com/plexusorg/Module-TFMExtras.git
synced 2026-06-04 07:36:54 +00:00
Update dependencies and Gradle, along with small cleanup
This commit is contained in:
@@ -70,12 +70,9 @@ public class CartSitCommand extends PlexCommand
|
||||
{
|
||||
return CompletableFuture.supplyAsync(() ->
|
||||
{
|
||||
Entity nearest = entities.get(0);
|
||||
for (int i = 0; i < entities.size(); i++)
|
||||
{
|
||||
Entity e = entities.get(i);
|
||||
if (player.getLocation().distance(e.getLocation()) < player.getLocation().distance(nearest.getLocation()))
|
||||
{
|
||||
Entity nearest = entities.getFirst();
|
||||
for (Entity e : entities) {
|
||||
if (player.getLocation().distance(e.getLocation()) < player.getLocation().distance(nearest.getLocation())) {
|
||||
nearest = e;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user