File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/kotlin/com/github/itsempa/nautilus/data Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.data.mob.Mob
66import at.hannibal2.skyhanni.events.MobEvent
77import at.hannibal2.skyhanni.events.fishing.SeaCreatureFishEvent
88import at.hannibal2.skyhanni.events.minecraft.SkyHanniRenderWorldEvent
9+ import at.hannibal2.skyhanni.features.dungeon.DungeonApi
910import at.hannibal2.skyhanni.features.fishing.FishingApi
1011import at.hannibal2.skyhanni.features.fishing.SeaCreature
1112import at.hannibal2.skyhanni.features.fishing.SeaCreatureManager
@@ -64,6 +65,7 @@ object SeaCreatureDetectionApi {
6465
6566 @HandleEvent
6667 fun onMobSpawn (event : MobEvent .Spawn .SkyblockMob ) {
68+ if (! isActive()) return // TODO: remove this workaround
6769 val mob = event.mob
6870 val data = entityIdToData[mob.entityId]
6971 if (data != null ) {
@@ -259,6 +261,9 @@ object SeaCreatureDetectionApi {
259261 }
260262 }
261263
264+ // TODO: remove workaround
265+ private fun isActive (): Boolean = ! DungeonApi .inDungeon()
266+
262267 @HandleEvent
263268 fun onDebug (event : NautilusDebugEvent ) {
264269 event.title(" Nautilus Sea Creatures" )
You can’t perform that action at this time.
0 commit comments