This commit is contained in:
aPunch 2012-03-15 03:33:00 -05:00
parent a37716ebeb
commit 33d5a07f29
2 changed files with 3 additions and 3 deletions

View File

@ -59,9 +59,9 @@ public class Settings {
this.value = value;
}
public List<String> asList() {
public List<String> asList(String path) {
List<String> list = new ArrayList<String>();
for (DataKey key : config.getKey("npc.default.text").getIntegerSubKeys())
for (DataKey key : config.getKey(path).getIntegerSubKeys())
list.add(key.getString(""));
return list;
}

View File

@ -180,7 +180,7 @@ public class Text extends Trait implements Runnable, Toggleable, ConversationAba
}
private void populateDefaultText() {
for (String line : Setting.DEFAULT_TEXT.asList())
for (String line : Setting.DEFAULT_TEXT.asList("npc.default.text"))
text.add(line);
}