aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/StatsTuning.kt8
1 files changed, 4 insertions, 4 deletions
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()) {