Rollback
Some checks failed
build / upload-release (push) Blocked by required conditions
build / build (17) (push) Has been cancelled

This commit is contained in:
BitHeaven 2025-01-21 02:56:22 +05:00
parent 58125c04df
commit bb1a6be978

View File

@ -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<Fluid> fluidTagKey) {
boolean oxygen = true;