aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea')
-rw-r--r--src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt b/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt
index 9aec040..c59b76c 100644
--- a/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt
+++ b/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt
@@ -54,8 +54,6 @@ object PotatoCrime : ModInitializer {
fun hasContraband(entity: ServerPlayerEntity): Boolean {
return entity.inventory
- .getMatchingStacks { it.isIn(PotatoRegistry.carrotIshItems) }
- .isNotEmpty()
-
+ .contains { it.isIn(PotatoRegistry.carrotIshItems) }
}
} \ No newline at end of file