From 20eef122b2e0d51917073f161f2b8d3d630a34ee Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 7 Mar 2024 01:25:02 +0100 Subject: removed optional nullable extension function --- src/main/java/at/hannibal2/skyhanni/features/fishing/FishingAPI.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingAPI.kt index 239e2a9aa..3be2e00b8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/FishingAPI.kt @@ -86,9 +86,9 @@ object FishingAPI { fun ItemStack.isFishingRod() = getInternalName().isFishingRod() fun NEUInternalName.isFishingRod() = isLavaRod() || isWaterRod() - fun NEUInternalName?.isLavaRod() = this in lavaRods + fun NEUInternalName.isLavaRod() = this in lavaRods - fun NEUInternalName?.isWaterRod() = this in waterRods + fun NEUInternalName.isWaterRod() = this in waterRods fun ItemStack.isBait(): Boolean = stackSize == 1 && getItemCategoryOrNull() == ItemCategory.FISHING_BAIT -- cgit