aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-19 07:40:53 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-19 07:40:53 +0800
commite96b7b4610441603bc29e118a36c539903e96d78 (patch)
treed9d1413f8b01a12899168c7e3e1e5c5693f5d641 /utils
parentc73f2318f8b6c9555f77a3eeb823faef49b2467c (diff)
downloadSoopyV2-e96b7b4610441603bc29e118a36c539903e96d78.tar.gz
SoopyV2-e96b7b4610441603bc29e118a36c539903e96d78.tar.bz2
SoopyV2-e96b7b4610441603bc29e118a36c539903e96d78.zip
fix
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/utils.js b/utils/utils.js
index bbef8ce..33aa83c 100644
--- a/utils/utils.js
+++ b/utils/utils.js
@@ -30,7 +30,7 @@ let utils = {
.func_74782_a("Lore", list);
},
getSBID: function(item){
- return item.getNBT()?.getCompoundTag("tag")?.getCompoundTag("ExtraAttributes")?.getString("id") || null
+ return item?.getNBT()?.getCompoundTag("tag")?.getCompoundTag("ExtraAttributes")?.getString("id") || null
},
calculateDistance: function(p1, p2) {
var a = p2[0] - p1[0];