Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-27 11:20:05 +01:00
Remove array casting and use lists
Dieser Commit ist enthalten in:
Ursprung
88b8fcce0c
Commit
267bb78cf3
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>tsp.headdb</groupId>
|
||||
<artifactId>HeadDB</artifactId>
|
||||
<version>2.3</version>
|
||||
<version>2.3.1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>HeadDB</name>
|
||||
|
@ -53,7 +53,7 @@ public class Head {
|
||||
}
|
||||
meta.setLore(Arrays.asList(
|
||||
Utils.colorize("&cID: " + id),
|
||||
Utils.colorize("&e" + buildTagLore((String[]) tags.toArray())),
|
||||
Utils.colorize("&e" + buildTagLore(tags)),
|
||||
"",
|
||||
Utils.colorize("&8Right-Click to add/remove from favorites.")
|
||||
));
|
||||
@ -116,11 +116,11 @@ public class Head {
|
||||
return this;
|
||||
}
|
||||
|
||||
private String buildTagLore(String... tags) {
|
||||
private String buildTagLore(List<String> tags) {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
for (int i = 0; i < tags.length; i++) {
|
||||
builder.append(tags[i]);
|
||||
if (i != tags.length - 1) {
|
||||
for (int i = 0; i < tags.size(); i++) {
|
||||
builder.append(tags.get(i));
|
||||
if (i != tags.size() - 1) {
|
||||
builder.append(",");
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren