From bb1a6be9781bee0d09591647ed448c72fb0cbe93 Mon Sep 17 00:00:00 2001 From: BitHeaven Date: Tue, 21 Jan 2025 02:56:22 +0500 Subject: [PATCH] Rollback --- .../bitheaven/createairfabric/mixin/DivingHelmetItemMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ru/bitheaven/createairfabric/mixin/DivingHelmetItemMixin.java b/src/main/java/ru/bitheaven/createairfabric/mixin/DivingHelmetItemMixin.java index ed0f04b..e199510 100644 --- a/src/main/java/ru/bitheaven/createairfabric/mixin/DivingHelmetItemMixin.java +++ b/src/main/java/ru/bitheaven/createairfabric/mixin/DivingHelmetItemMixin.java @@ -15,7 +15,7 @@ public abstract class DivingHelmetItemMixin { /** * Activate helmet "if in water or lava" -> "if in water or bad air or lava" */ - @ModifyExpressionValue(at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;isEyeInFluid(Lnet/minecraft/tags/TagKey;)Z"), + @Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;isEyeInFluid(Lnet/minecraft/tags/TagKey;)Z"), method = "breatheUnderwater(Lnet/minecraft/world/entity/LivingEntity;)V") private static boolean redirectBreatheUnderwater(LivingEntity entity, TagKey fluidTagKey) { boolean oxygen = true;