Skip to content

Commit

Permalink
don't try to load 3d armor
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Apr 30, 2021
1 parent 9d09702 commit 9ab21ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ function objectsPartiallyMatch(obj, checkerObj) {
}
async function checkMatches(options, matcher) {
// check 'items'
if (matcher.type === 'armor')
return false;
if (matcher.items && !matcher.items.includes(options.id))
return false;
if (options.damage !== undefined && matcher.damage != undefined && options.damage !== matcher.damage)
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ function objectsPartiallyMatch(obj: NBT, checkerObj: NBT): boolean {

async function checkMatches(options: Options, matcher: Matcher): Promise<boolean> {
// check 'items'
if (matcher.type === 'armor')
return false
if (matcher.items && !matcher.items.includes(options.id))
return false
if (options.damage !== undefined && matcher.damage != undefined && options.damage !== matcher.damage)
Expand Down

0 comments on commit 9ab21ec

Please sign in to comment.