From 94455031f150c4fb7120f7eba1d2ae5ce0694087 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 2 Apr 2024 03:48:33 +0200 Subject: Use official yarn build --- src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/kotlin/moe/nea/potatocrime/PotatoCrime.kt') 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 -- cgit