Fixed bug with empty JSON string lists

This commit is contained in:
Auxilor
2021-06-18 09:02:17 +01:00
parent 853864f6f0
commit 7f4a0c800e

View File

@@ -48,6 +48,10 @@ public class StringUtils {
*/
public List<String> translateList(@NotNull final List<String> list,
@Nullable final Player player) {
if (list.isEmpty()) {
return list;
}
List<String> translated = new ArrayList<>();
for (String string : list) {
translated.add(translate(string, player));