aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-07 07:44:37 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-01-07 07:44:37 +0100
commitf9d037aff483bff61b800fffa96d0afe8a85a9ef (patch)
tree6b637fd00515e9b62e830e61b72855abae1d2e02 /src/main/java/at/hannibal2
parentffba85d9022b95cc5b44f927b6ea7399aee365e7 (diff)
downloadskyhanni-f9d037aff483bff61b800fffa96d0afe8a85a9ef.tar.gz
skyhanni-f9d037aff483bff61b800fffa96d0afe8a85a9ef.tar.bz2
skyhanni-f9d037aff483bff61b800fffa96d0afe8a85a9ef.zip
Code cleanup.
Diffstat (limited to 'src/main/java/at/hannibal2')
-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()) {