Skip to content

Commit

Permalink
improve item command validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 21, 2018
1 parent 86517c3 commit 308a8a7
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -53,7 +53,8 @@ else if (!scriptEntry.hasObject("unlimit_stack_size")
scriptEntry.addObject("unlimit_stack_size", new Element(true));
}
else if (!scriptEntry.hasObject("items")
&& !scriptEntry.hasObject("type")) {
&& !scriptEntry.hasObject("type")
&& (arg.matchesArgumentList(dItem.class) || arg.startsWith("item:"))) {
scriptEntry.addObject("items", dList.valueOf(arg.raw_value.startsWith("item:") ?
arg.raw_value.substring("item:".length()) : arg.raw_value).filter(dItem.class, scriptEntry));
}
Expand Down

0 comments on commit 308a8a7

Please sign in to comment.