Skip to content

Commit

Permalink
Allow correct dItem player/npc tag parsing in inventory scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Jan 4, 2015
1 parent d231df7 commit 6dfe466
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -153,13 +153,13 @@ public dInventory getInventoryFrom(dPlayer player, dNPC npc) {
dItem.matches(getString("DEFINITIONS." + m.group(2)))) {
finalItems[itemsAdded] = dItem.valueOf(TagManager.tag
(getString("DEFINITIONS." + m.group(2)),
new BukkitTagContext(player, npc, false, null, shouldDebug(), new dScript(this))))
.getItemStack();
new BukkitTagContext(player, npc, false, null, shouldDebug(), new dScript(this))),
player, npc).getItemStack();
}
else if (dItem.matches(m.group(2))) {
finalItems[itemsAdded] = dItem.valueOf(TagManager.tag(m.group(2),
new BukkitTagContext(player, npc, false, null, shouldDebug(), new dScript(this))))
.getItemStack();
new BukkitTagContext(player, npc, false, null, shouldDebug(), new dScript(this))),
player, npc).getItemStack();
}
else {
finalItems[itemsAdded] = new ItemStack(Material.AIR);
Expand Down

0 comments on commit 6dfe466

Please sign in to comment.