Set return type from double to float
This commit is contained in:
parent
709202574a
commit
ee9a6db15a
11 changed files with 77 additions and 19 deletions
|
|
@ -10,8 +10,11 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public interface PreparedPlugin {
|
||||
Logger getLogger();
|
||||
|
||||
Config getDefaultConfig();
|
||||
|
||||
Language getLanguage();
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import org.zhdev.varioutil.sql.*;
|
|||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
public class ConfigUtils {
|
||||
|
|
@ -15,9 +16,12 @@ public class ConfigUtils {
|
|||
ConfigSection section = config.getSection(i);
|
||||
if (section == null) continue;
|
||||
for (String j : section) {
|
||||
String phrase = section.getString(j);
|
||||
if (phrase == null) {
|
||||
phrase = String.join("\n", CollectionUtils.mapToString(section.getList(j, Collections.emptyList()), ArrayList::new));
|
||||
String phrase;
|
||||
List<?> list = section.getList(j);
|
||||
if (list == null) {
|
||||
phrase = section.getString(j);
|
||||
} else {
|
||||
phrase = String.join("\n", CollectionUtils.mapToString(list, ArrayList::new));
|
||||
}
|
||||
language.addPhrase(i, j, function.apply(phrase));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue