diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-18 16:57:23 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-18 16:57:23 +0800 |
commit | a9e72c1297b6f4b046dbe9c76516a0e0d30c2d39 (patch) | |
tree | 31bc263a70237f1bbf9acca23ca34a9ed0f1ebd1 /features/mining/index.js | |
parent | 4cdf533c28ff4680124c986b7cd16ae5870d0c36 (diff) | |
download | SoopyV2-a9e72c1297b6f4b046dbe9c76516a0e0d30c2d39.tar.gz SoopyV2-a9e72c1297b6f4b046dbe9c76516a0e0d30c2d39.tar.bz2 SoopyV2-a9e72c1297b6f4b046dbe9c76516a0e0d30c2d39.zip |
fixes
Diffstat (limited to 'features/mining/index.js')
-rw-r--r-- | features/mining/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/features/mining/index.js b/features/mining/index.js index fb2db0f..a2cfccf 100644 --- a/features/mining/index.js +++ b/features/mining/index.js @@ -153,6 +153,7 @@ class Mining extends Feature { slots.forEach(a=>{ item = Player.getInventory().getStackInSlot(a) + if(!item) return if(item.getNBT()?.getCompoundTag("tag")?.getCompoundTag("ExtraAttributes")?.getInteger("compact_blocks")){ this.compactItems++ this.totalCompact += item.getNBT().getCompoundTag("tag").getCompoundTag("ExtraAttributes").getInteger("compact_blocks") |