mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-27 11:37:42 +01:00
Update src/main/java/net/citizensnpcs/Settings.java
This commit is contained in:
parent
0302da1513
commit
36e8d3ca88
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user