summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/nether
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-03 14:14:01 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-03 14:14:01 +0200
commit18360356893db95f3fd49c19906ff18d19ea298a (patch)
treecb1f26e45cde4c43e5d240f9c61aa28ed2547866 /src/main/java/at/hannibal2/skyhanni/features/nether
parenta6e143df4997bdd76115f6da60a6f19ab320a436 (diff)
downloadskyhanni-18360356893db95f3fd49c19906ff18d19ea298a.tar.gz
skyhanni-18360356893db95f3fd49c19906ff18d19ea298a.tar.bz2
skyhanni-18360356893db95f3fd49c19906ff18d19ea298a.zip
Renamed inventory open events to reflect their actual implementation better
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/nether')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt2
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
index 5c0b7bf83..6c9692a18 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
@@ -34,7 +34,7 @@ class DailyQuestHelper(val reputationHelper: CrimsonIsleReputationHelper) {
@SubscribeEvent
- fun onInventoryOpen(event: InventoryOpenEvent) {
+ fun onInventoryOpen(event: InventoryFullyOpenedEvent) {
if (!isEnabled()) return
questLoader.checkInventory(event)
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt
index 394f92383..1d4947b98 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/QuestLoader.kt
@@ -1,7 +1,7 @@
package at.hannibal2.skyhanni.features.nether.reputationhelper.dailyquest
import at.hannibal2.skyhanni.config.Storage
-import at.hannibal2.skyhanni.events.InventoryOpenEvent
+import at.hannibal2.skyhanni.events.InventoryFullyOpenedEvent
import at.hannibal2.skyhanni.features.nether.reputationhelper.dailyquest.quest.*
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.LorenzUtils
@@ -110,7 +110,7 @@ class QuestLoader(private val dailyQuestHelper: DailyQuestHelper) {
return dailyQuestHelper.quests.firstOrNull { it.internalName == name }
}
- fun checkInventory(event: InventoryOpenEvent) {
+ fun checkInventory(event: InventoryFullyOpenedEvent) {
val inMageRegion = LorenzUtils.skyBlockArea == "Community Center"
val inBarbarianRegion = LorenzUtils.skyBlockArea == "Dragontail"
if (!inMageRegion && !inBarbarianRegion) return