Skip to content

Commit

Permalink
possible fix for setting inventory origin to a flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Nov 22, 2020
1 parent 2563c4c commit d8f2120
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -51,7 +51,7 @@ public static AbstractMap.SimpleEntry<Integer, InventoryTag> getInventory(Argume
}

public static AbstractMap.SimpleEntry<Integer, InventoryTag> getInventory(Argument arg, TagContext context) {
boolean isElement = arg.object instanceof ElementTag;
boolean isElement = arg.object instanceof ElementTag || (arg.object instanceof ListTag && ((ListTag) arg.object).flag != null);
if (arg.object instanceof InventoryTag || (isElement && InventoryTag.matches(arg.getValue()))) {
InventoryTag inv = arg.object instanceof InventoryTag ? (InventoryTag) arg.object : InventoryTag.valueOf(arg.getValue(), context);
if (inv != null) {
Expand Down

0 comments on commit d8f2120

Please sign in to comment.