Skip to content

Commit

Permalink
clean adjust command
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 25, 2018
1 parent 7d9ae7b commit 68bd74d
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -17,7 +17,7 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException

for (aH.Argument arg : aH.interpret(scriptEntry.getArguments())) {
if (!scriptEntry.hasObject("object")) {
scriptEntry.addObject("object", arg.asElement());
scriptEntry.addObject("object", arg.asType(dList.class));
}
else if (!scriptEntry.hasObject("mechanism")) {
if (arg.hasPrefix()) {
Expand Down Expand Up @@ -51,13 +51,13 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
Element mechanism = scriptEntry.getElement("mechanism");
Element value = scriptEntry.getElement("mechanism_value");

dList objects = scriptEntry.getdObject("object");

dB.report(scriptEntry, getName(),
scriptEntry.getElement("object").debug()
objects.debug()
+ mechanism.debug()
+ value.debug());

dList objects = dList.valueOf(scriptEntry.getElement("object").asString());

dList result = new dList();

for (String object : objects) {
Expand Down

0 comments on commit 68bd74d

Please sign in to comment.