Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Fix unable to use helium flamingo with charm of sinking
Browse files Browse the repository at this point in the history
  • Loading branch information
florensie committed Apr 9, 2022
1 parent 74ca34c commit 4077b4a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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);
}
Expand Down

0 comments on commit 4077b4a

Please sign in to comment.