Skip to content

Commit

Permalink
use new Denizen build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 25, 2019
1 parent ed65802 commit 643901e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -68,7 +68,7 @@ public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException
if (!scriptEntry.hasObject("targets")
&& arg.matchesPrefix("targets", "targets")
&& arg.matchesArgumentList(PlayerTag.class)) {
scriptEntry.addObject("targets", arg.asType(ListTag.class).filter(PlayerTag.class));
scriptEntry.addObject("targets", arg.asType(ListTag.class).filter(PlayerTag.class, scriptEntry));
}

else if (!scriptEntry.hasObject("file")
Expand Down
Expand Up @@ -161,7 +161,7 @@ else if (typeLower.startsWith("variable:")) {
}
else if (typeLower.startsWith("items:")) {
List<ItemStack> itemsToSet = new ArrayList<>();
for (ItemTag item : new ListTag(type.substring("items:".length())).filter(ItemTag.class)) {
for (ItemTag item : new ListTag(type.substring("items:".length())).filter(ItemTag.class, path.container, true)) {
itemsToSet.add(item.getItemStack());
}
reagents.setItems(itemsToSet);
Expand Down
Expand Up @@ -121,7 +121,7 @@ else if (Argument.valueOf(determination).matchesArgumentList(ItemTag.class)) {
if (newDrops == null) {
newDrops = new ArrayList<>();
}
List<ItemTag> items = ListTag.valueOf(determination).filter(ItemTag.class, path.container);
List<ItemTag> items = ListTag.valueOf(determination).filter(ItemTag.class, path.container, true);
for (ItemTag i : items) {
newDrops.add(i.getItemStack());
}
Expand Down

0 comments on commit 643901e

Please sign in to comment.