aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--features/events/index.js1
-rw-r--r--features/mining/index.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/features/events/index.js b/features/events/index.js
index ee89ff4..67add66 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -132,6 +132,7 @@ class Events extends Feature {
slots.forEach(a=>{
item = Player.getInventory().getStackInSlot(a)
+ if(!item) return
if(ChatLib.removeFormatting(item.getName()) === "Ancestral Spade"){
hasDianaShovle = true
}
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")