Skip to content

Commit

Permalink
Fix Listener bug
Browse files Browse the repository at this point in the history
And... the freakin... EoF newline...
  • Loading branch information
mcmonkey4eva committed Aug 31, 2013
1 parent 0595087 commit 3c2aeb9
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -69,10 +69,6 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException
&& arg.matchesEnum(Action.values()))
scriptEntry.addObject("action", arg.asElement());

// <type>
else if (!scriptEntry.hasObject("type"))
scriptEntry.addObject("type", arg.asElement());

// <id:name>
else if (!scriptEntry.hasObject("id")
&& arg.matchesPrefix("id, i"))
Expand All @@ -84,6 +80,10 @@ else if (!scriptEntry.hasObject("finish_script")
&& arg.matchesArgumentType(dScript.class))
scriptEntry.addObject("finish_script", arg.asType(dScript.class));

// <type>
else if (!scriptEntry.hasObject("type"))
scriptEntry.addObject("type", arg.asElement());

arguments.add(arg);
}

Expand Down Expand Up @@ -169,4 +169,4 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {



}
}

0 comments on commit 3c2aeb9

Please sign in to comment.