diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-19 07:40:53 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-19 07:40:53 +0800 |
commit | e96b7b4610441603bc29e118a36c539903e96d78 (patch) | |
tree | d9d1413f8b01a12899168c7e3e1e5c5693f5d641 /utils/utils.js | |
parent | c73f2318f8b6c9555f77a3eeb823faef49b2467c (diff) | |
download | SoopyV2-e96b7b4610441603bc29e118a36c539903e96d78.tar.gz SoopyV2-e96b7b4610441603bc29e118a36c539903e96d78.tar.bz2 SoopyV2-e96b7b4610441603bc29e118a36c539903e96d78.zip |
fix
Diffstat (limited to 'utils/utils.js')
-rw-r--r-- | utils/utils.js | 2 |
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]; |