From 0302da151391c5306c6e48daa3c2924018784b1d Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 27 May 2012 16:32:11 +0800 Subject: [PATCH] . --- src/main/java/net/citizensnpcs/Settings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/citizensnpcs/Settings.java b/src/main/java/net/citizensnpcs/Settings.java index 03b28d127..ddc58d896 100644 --- a/src/main/java/net/citizensnpcs/Settings.java +++ b/src/main/java/net/citizensnpcs/Settings.java @@ -93,7 +93,7 @@ public class Settings { @SuppressWarnings("unchecked") public List asList() { - return (List) value; + return value instanceof List ? (List) value : (value = Lists.newArrayList(value)); } public long asLong() {