Skip to content

Commit

Permalink
Fix Map command debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Jan 2, 2015
1 parent 6897b5a commit 55dd6a9
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -35,12 +35,12 @@ else if (!scriptEntry.hasObject("reset-loc")
&& arg.matchesPrefix("r", "reset")
&& arg.matchesArgumentType(dLocation.class)) {
scriptEntry.addObject("reset-loc", arg.asType(dLocation.class));
scriptEntry.addObject("reset", Element.TRUE);
scriptEntry.addObject("reset", new Element(true));
}

else if (!scriptEntry.hasObject("reset")
&& arg.matches("reset")) {
scriptEntry.addObject("reset", Element.TRUE);
scriptEntry.addObject("reset", new Element(true));
}

else if (!scriptEntry.hasObject("image")
Expand All @@ -50,7 +50,7 @@ else if (!scriptEntry.hasObject("image")

else if (!scriptEntry.hasObject("resize")
&& arg.matches("resize")) {
scriptEntry.addObject("resize", Element.TRUE);
scriptEntry.addObject("resize", new Element(true));
}

else if (!scriptEntry.hasObject("width")
Expand Down Expand Up @@ -99,7 +99,7 @@ else if (!scriptEntry.hasObject("map-id")
&& !scriptEntry.hasObject("script"))
throw new InvalidArgumentsException("Must specify a valid action to perform!");

scriptEntry.defaultObject("reset", Element.FALSE).defaultObject("resize", Element.FALSE)
scriptEntry.defaultObject("reset", new Element(false)).defaultObject("resize", new Element(false))
.defaultObject("x-value", new Element(0)).defaultObject("y-value", new Element(0));

}
Expand Down

0 comments on commit 55dd6a9

Please sign in to comment.