Update dependencies and Gradle, along with small cleanup

This commit is contained in:
Focusvity
2025-11-05 20:18:04 +11:00
parent 64548d05f9
commit b5051dd0d5
8 changed files with 20 additions and 21 deletions
@@ -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;
}
}