Skip to content

Commit

Permalink
fix inventory script event matching
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 24, 2020
1 parent b2ea09c commit bc41f51
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -662,6 +662,9 @@ public boolean tryInventory(InventoryTag inv, String comparedto) {
if (matcher.doesMatch(inv.getIdHolder().toString())) {
return true;
}
if (inv.getIdHolder() instanceof ScriptTag && matcher.doesMatch(((ScriptTag) inv.getIdHolder()).getName())) {
return true;
}
String notedId = NotableManager.getSavedId(inv);
if (notedId != null && matcher.doesMatch(notedId)) {
return true;
Expand Down

0 comments on commit bc41f51

Please sign in to comment.