mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fix "cleanup" breaking plugin again
This commit is contained in:
parent
30dc20b3b3
commit
5275d4ec62
1 changed files with 8 additions and 4 deletions
|
@ -537,12 +537,16 @@ public class MemorySection implements ConfigurationSection {
|
|||
|
||||
@Override
|
||||
public List<String> getStringList(String path) {
|
||||
List<?> list = getList(path);
|
||||
final List<?> list = getList(path);
|
||||
|
||||
List<String> result = new ArrayList<>();
|
||||
if (list == null) {
|
||||
return new ArrayList<>(0);
|
||||
}
|
||||
|
||||
for (Object object : list) {
|
||||
if ((object instanceof String) || isPrimitiveWrapper(object)) {
|
||||
final List<String> result = new ArrayList<>();
|
||||
|
||||
for (final Object object : list) {
|
||||
if ((object instanceof String) || (isPrimitiveWrapper(object))) {
|
||||
result.add(String.valueOf(object));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue