From 4077b4ab0c92d5164d67329bbe0d6fbfff7ff5df Mon Sep 17 00:00:00 2001 From: Florens Pauwels Date: Sat, 9 Apr 2022 22:15:24 +0200 Subject: [PATCH] Fix unable to use helium flamingo with charm of sinking --- .../common/item/curio/necklace/CharmOfSinkingItem.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/artifacts/common/item/curio/necklace/CharmOfSinkingItem.java b/src/main/java/artifacts/common/item/curio/necklace/CharmOfSinkingItem.java index aab9b825a..cdf533841 100644 --- a/src/main/java/artifacts/common/item/curio/necklace/CharmOfSinkingItem.java +++ b/src/main/java/artifacts/common/item/curio/necklace/CharmOfSinkingItem.java @@ -1,7 +1,6 @@ package artifacts.common.item.curio.necklace; -import artifacts.common.components.SwimAbilityComponent; import artifacts.common.init.ModComponents; import artifacts.common.item.curio.CurioItem; import artifacts.common.trinkets.TrinketsHelper; @@ -21,7 +20,7 @@ public CharmOfSinkingItem() { private static TriState onPlayerSwim(Player player) { return ModComponents.SWIM_ABILITIES.maybeGet(player) - .filter(SwimAbilityComponent::isSinking) + .filter(swimAbilityComponent -> swimAbilityComponent.isSinking() && !swimAbilityComponent.isSwimming()) .map(swimAbilities -> TriState.FALSE) .orElse(TriState.DEFAULT); }