Update src/main/java/net/citizensnpcs/Settings.java

This commit is contained in:
fullwall 2012-05-27 16:35:04 +08:00
parent 0302da1513
commit 36e8d3ca88

View File

@ -93,7 +93,10 @@ public class Settings {
@SuppressWarnings("unchecked")
public List<String> asList() {
return value instanceof List<String> ? (List<String>) value : (value = Lists.newArrayList(value));
if (value instanceof String) {
value = Lists.newArrayList(value);
}
return (List<String>) value;
}
public long asLong() {