diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt index 5e6656b3b..96de875f2 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/HarpFeatures.kt @@ -159,7 +159,7 @@ object HarpFeatures { if (event.slot?.slotNumber != closeButtonSlot) return if (openTime.passedSince() > 2.seconds) return event.container.inventory.indexOfFirst { - songSelectedPattern.anyMatches(it.getLore()) + songSelectedPattern.anyMatches(it?.getLore() ?: return@indexOfFirst false) }.takeIf { it != -1 }?.let { event.isCanceled = true Minecraft.getMinecraft().playerController.windowClick( |