Skip to content

Commit

Permalink
fix: add creature buckets to iron items
Browse files Browse the repository at this point in the history
fix: WATER_BREATHING no longer saves from full submersion
  • Loading branch information
Sigmarik committed Jul 5, 2023
1 parent 3855383 commit b8cf6c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private boolean hasTrait(String trait) {
private void tickFearOfWater() {
if (!hasTrait(Traits.FEAR_OF_WATER) || !isWet()) return;

if (hasStatusEffect(StatusEffects.WATER_BREATHING)) return;
if (hasStatusEffect(StatusEffects.WATER_BREATHING) && !isSubmergedInWater()) return;

damage(getDamageSources().magic(), 3);
}
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/net/sigmarik/abilitymod/util/PropSets.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ public class PropSets {
Items.TNT_MINECART,
Items.TRAPPED_CHEST,
Items.TRIPWIRE_HOOK,
Items.WATER_BUCKET
Items.WATER_BUCKET,

Items.COD_BUCKET,
Items.PUFFERFISH_BUCKET,
Items.SALMON_BUCKET,
Items.TADPOLE_BUCKET,
Items.TROPICAL_FISH_BUCKET
);
}

0 comments on commit b8cf6c5

Please sign in to comment.