From 3683257be3e74ac977d189100ff8db48b55d2a1b Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Wed, 12 Jun 2024 23:59:44 +0200 Subject: Fix: Fixed enchant parsing causing errors in custom wardrobe (#2074) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt index 21bf346ff..521be1429 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobe.kt @@ -135,7 +135,9 @@ object CustomWardrobe { @SubscribeEvent fun onInventoryUpdate(event: InventoryUpdatedEvent) { if (!isEnabled() || editMode) return - update() + DelayedRun.runNextTick { + update() + } } private fun update() { -- cgit