From f9d037aff483bff61b800fffa96d0afe8a85a9ef Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 7 Jan 2023 07:44:37 +0100 Subject: Code cleanup. --- .../java/at/hannibal2/skyhanni/features/inventory/StatsTuning.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/StatsTuning.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/StatsTuning.kt index 98383bd0c..dd17caf48 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/StatsTuning.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/StatsTuning.kt @@ -19,12 +19,12 @@ class StatsTuning { @SubscribeEvent fun onRenderItemTip(event: RenderInventoryItemTipEvent) { - val chestName = InventoryUtils.openInventoryName() + val inventoryName = event.inventoryName val stack = event.stack if (SkyHanniMod.feature.inventory.statsTuningTemplateStats) { - if (chestName == "Stats Tuning") { + if (inventoryName == "Stats Tuning") { val name = stack.name ?: return if (name == "§aLoad") { var grab = false @@ -54,7 +54,7 @@ class StatsTuning { } } if (SkyHanniMod.feature.inventory.statsTuningSelectedStats) { - if (chestName == "Accessory Bag Thaumaturgy") { + if (inventoryName == "Accessory Bag Thaumaturgy") { val name = stack.name ?: return if (name == "§aStats Tuning") { var grab = false @@ -84,7 +84,7 @@ class StatsTuning { } } if (SkyHanniMod.feature.inventory.statsTuningPoints) { - if (chestName == "Stats Tuning") { + if (inventoryName == "Stats Tuning") { for (line in stack.getLore()) { val matcher = patternStatPoints.matcher(line) if (matcher.matches()) { -- cgit