Skip to content

Commit

Permalink
Possible fix for location lists without li@ (JstMeMage)
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Nov 10, 2013
1 parent b81619d commit f1e9274
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -23,14 +23,14 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException
// Iterate through arguments
for (aH.Argument arg : aH.interpret(scriptEntry.getArguments())) {

if (arg.matchesArgumentType(dLocation.class))
locations.add(arg.getValue());

else if (arg.matchesArgumentType(dList.class)) {
if (arg.matchesArgumentType(dList.class)) {
for (String item : dList.valueOf(arg.getValue()))
if (dLocation.matches(item)) locations.add(item);
}

else if (arg.matchesArgumentType(dLocation.class))
locations.add(arg.getValue());

else if (arg.matchesPrefix("d, duration")
&& arg.matchesArgumentType(Duration.class))
scriptEntry.addObject("duration", arg.asType(Duration.class));
Expand Down

0 comments on commit f1e9274

Please sign in to comment.