From 63e827aefbae913a97e29dd25464885c5c43eca8 Mon Sep 17 00:00:00 2001 From: bm01 Date: Sat, 2 Feb 2013 04:42:24 +0100 Subject: [PATCH] isEmpty() is prettier <3 --- src/main/java/com/gmail/nossr50/party/ShareHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/party/ShareHandler.java b/src/main/java/com/gmail/nossr50/party/ShareHandler.java index e2123d766..9b10fa4fa 100644 --- a/src/main/java/com/gmail/nossr50/party/ShareHandler.java +++ b/src/main/java/com/gmail/nossr50/party/ShareHandler.java @@ -41,7 +41,7 @@ public final class ShareHandler { if (party.getXpShareMode() == XpShareMode.EQUAL) { List nearMembers = PartyManager.getNearMembers(player, party, Config.getInstance().getPartyShareRange()); - if (nearMembers.size() <= 0) { + if (nearMembers.isEmpty()) { running = false; return; }