From 3d3a1abf7be82aeb561035fbbc2ff1428e1246b4 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 15 Feb 2013 10:34:42 -0500 Subject: [PATCH] OfflinePlayer.getName().toString() is pointless. --- src/main/java/com/gmail/nossr50/party/PartyManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index aaf1d368c..ab2e2b578 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -212,7 +212,7 @@ public final class PartyManager { else { //If the leaving player was the party leader, appoint a new leader from the party members if (party.getLeader().equals(player.getName())) { - String newLeader = members.get(0).getName().toString(); + String newLeader = members.get(0).getName(); party.setLeader(newLeader); }