From a34391dd76097c51e9ad8847779db2b88b31d42e Mon Sep 17 00:00:00 2001
From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>
Date: Thu, 11 Aug 2022 02:13:15 +0800
Subject: 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
---
 features/globalSettings/index.js | 1 +
 1 file changed, 1 insertion(+)

(limited to 'features')

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
-- 
cgit