aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-02 03:48:33 +0200
committerLinnea Gräf <nea@nea.moe>2024-04-02 03:48:33 +0200
commit94455031f150c4fb7120f7eba1d2ae5ce0694087 (patch)
tree60e07f9537112dd3ca2078bc5c06f1a831fd4058 /src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt
parent2105991a3ff36cf3c02795919b751d4db782083a (diff)
downloadpotato-crimes-94455031f150c4fb7120f7eba1d2ae5ce0694087.tar.gz
potato-crimes-94455031f150c4fb7120f7eba1d2ae5ce0694087.tar.bz2
potato-crimes-94455031f150c4fb7120f7eba1d2ae5ce0694087.zip
Use official yarn build
Diffstat (limited to 'src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt')
-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