Skip to content

Commit

Permalink
Update src/main/java/net/citizensnpcs/Settings.java
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed May 27, 2012
1 parent 392f28f commit 735afe2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/net/citizensnpcs/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ public int asInt() {

@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() {
Expand Down

0 comments on commit 735afe2

Please sign in to comment.