Compare commits

...

2 Commits

Author SHA1 Message Date
956d2e6b53 Again update workflow
Some checks failed
build / build (push) Failing after 10s
2025-01-21 02:45:47 +05:00
ed146f441d Test 2025-01-21 02:45:24 +05:00
2 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,7 @@ jobs:
build:
strategy:
matrix:
java: [ 17 ]
java: '17'
runs-on: ubuntu-latest
steps:
- name: checkout repository
@ -37,7 +37,7 @@ jobs:
- name: Make release
uses: actions/gitea-release-action@v1
with:
name: Create Air Fabric 1.0-1${{ gitea.run_id }} for 1.20.1
name: Create Air Fabric 1.0-${{ gitea.run_id }} for 1.20.1
md5sum: true
sha256sum: true
files: |-

View File

@ -6,6 +6,7 @@ import net.minecraft.world.level.material.Fluid;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import com.simibubi.create.content.equipment.armor.DivingHelmetItem;
import ru.bitheaven.createairfabric.CreateAirFabric;
@ -14,7 +15,7 @@ public abstract class DivingHelmetItemMixin {
/**
* Activate helmet "if in water or lava" -> "if in water or bad air or lava"
*/
@Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;isEyeInFluid(Lnet/minecraft/tags/TagKey;)Z"),
@ModifyExpressionValue(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;