From a9e72c1297b6f4b046dbe9c76516a0e0d30c2d39 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 18 Jan 2022 16:57:23 +0800 Subject: fixes --- features/mining/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'features/mining/index.js') 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") -- cgit