diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger')
-rw-r--r-- | src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt b/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt index bc072ba..8d0dc7b 100644 --- a/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt +++ b/src/main/kotlin/moe/nea/ledger/modules/KuudraChestDetection.kt @@ -24,7 +24,7 @@ class KuudraChestDetection : ChestDetection() { lateinit var minecraft: Minecraft fun hasKey(keyItem: ItemId): Boolean { val p = minecraft.thePlayer ?: return false - return p.inventory.mainInventory.any { it.getInternalId() == keyItem } + return p.inventory.mainInventory.any { it?.getInternalId() == keyItem } } @SubscribeEvent |