Skip to content

Commit

Permalink
fix item.with
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 25, 2019
1 parent 83319ec commit 9dd7934
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -692,7 +692,7 @@ public String run(Attribute attribute, dObject object) {
dB.echoError("i@item.with[...] tag must have an input mechanism list.");
}
dItem item = new dItem(((dItem) object).getItemStack().clone());
List<String> properties = ObjectFetcher.separateProperties(attribute.getContext(1));
List<String> properties = ObjectFetcher.separateProperties("[" + attribute.getContext(1) + "]");
for (int i = 1; i < properties.size(); i++) {
List<String> data = CoreUtilities.split(properties.get(i), '=', 2);
if (data.size() != 2) {
Expand Down

0 comments on commit 9dd7934

Please sign in to comment.