Code improvements.

This commit is contained in:
MobiusDev
2016-04-24 16:30:15 +00:00
parent 8bd51aba1c
commit 2dd14bef9b
860 changed files with 8865 additions and 17041 deletions

View File

@@ -109,15 +109,7 @@ public class L2Event
}
sortByValue(tmp);
// If the map size is less than "n", n will be as much as the map size
if (tmp.size() <= n)
{
return new ArrayList<>(tmp.keySet());
}
final List<L2PcInstance> toReturn = new ArrayList<>(tmp.keySet());
return toReturn.subList(1, n);
return tmp.size() <= n ? new ArrayList<>(tmp.keySet()) : (new ArrayList<>(tmp.keySet())).subList(1, n);
}
public static void showEventHtml(L2PcInstance player, String objectid)