aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-08-11 02:13:15 +0800
committerGitHub <noreply@github.com>2022-08-11 02:13:15 +0800
commita34391dd76097c51e9ad8847779db2b88b31d42e (patch)
tree387211d214ed420371c3af09de174b3653ef04cb /features/globalSettings
parent3dff26823ee3e3cf07d85889105279c85a0bfad8 (diff)
downloadSoopyV2-a34391dd76097c51e9ad8847779db2b88b31d42e.tar.gz
SoopyV2-a34391dd76097c51e9ad8847779db2b88b31d42e.tar.bz2
SoopyV2-a34391dd76097c51e9ad8847779db2b88b31d42e.zip
added check
+ added a check for pickup log to exclude sbmenu and armor pieces so it doesnt go brrr when u open menu/ switch armor with wardrobe
Diffstat (limited to 'features/globalSettings')
-rw-r--r--features/globalSettings/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index ca1519b..ffa7b9f 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -130,6 +130,7 @@ class GlobalSettings extends Feature {
let oldItem = this.oldItemData[j]
let newItem = i
if (!oldItem && !newItem) return //they both are air
+ if (j > 36 || j == 9) return //sbmenu and armors (when switching wardrobe it goes brrr w/o this)
let oldItemAmount = oldItem ? oldItem.getNBT().toObject()?.Count : 0
let oldItemName = oldItem ? oldItem.getName() : ""
let newItemAmount = newItem ? newItem.getNBT().toObject()?.Count : 0