Skip to content

Commit

Permalink
more potion tweaks and an icon
Browse files Browse the repository at this point in the history
  • Loading branch information
LemmaEOF committed Aug 20, 2018
1 parent db581dc commit e94ee6a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file added icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions src/main/java/space/bbkr/aquarius/mixins/MixinFlippers.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.PotionEffect;
import net.minecraft.tags.FluidTags;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -26,8 +25,8 @@ public MixinFlippers(EntityType<?> p_i48577_1_, World p_i48577_2_) {
private void updateTurtleHelmet(CallbackInfo ci) {
ItemStack stackFeet = this.getItemStackFromSlot(EntityEquipmentSlot.FEET);
if (stackFeet.getItem() == Aquarius.FLIPPERS) {
if (this.areEyesInFluid(FluidTags.WATER)) this.addPotionEffect(new PotionEffect(MobEffects.DOLPHINS_GRACE, 20));
else this.addPotionEffect(new PotionEffect(MobEffects.SLOWNESS, 20));
if (this.isInWater()) this.addPotionEffect(new PotionEffect(MobEffects.DOLPHINS_GRACE, 20, 0, true, false, true));
else this.addPotionEffect(new PotionEffect(MobEffects.SLOWNESS, 20, 0, true, false, true));
}
}
}
Binary file modified src/main/resources/pack.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e94ee6a

Please sign in to comment.