Skip to content

Commit

Permalink
inventory.script_name: true null for no-script-name
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 7, 2019
1 parent faa5e74 commit 0f0c9c8
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -59,6 +59,9 @@ public static void registerTags() {
// Returns the name of the script that this inventory came from (if any).
// -->
PropertyParser.<InventoryScriptName>registerTag("script_name", (attribute, inventory) -> {
if (inventory.inventory.scriptName == null) {
return null;
}
return new ElementTag(inventory.inventory.scriptName);
});
}
Expand Down

0 comments on commit 0f0c9c8

Please sign in to comment.