6 Commits

Author SHA1 Message Date
36942712f1 Merge remote-tracking branch 'origin/main'
Some checks failed
build / build (17) (push) Failing after 1m8s
2023-10-31 23:04:09 +05:00
fd5ef6c9f7 Little updates 2023-10-31 23:02:15 +05:00
82e8b27221 Обновить .gitea/workflows/build.yml
Some checks failed
build / build (17) (push) Failing after 2m47s
2023-10-31 16:05:53 +00:00
8a31930866 Обновить build.gradle
Some checks failed
build / build (17) (push) Failing after 6s
2023-10-31 16:03:56 +00:00
a1b720f918 Обновить .gitea/workflows/build.yml
Some checks failed
build / build (17) (push) Failing after 2m15s
2023-10-31 15:42:19 +00:00
30cdf291a6 Обновить .gitea/workflows/build.yml 2023-10-31 15:41:44 +00:00
4 changed files with 11 additions and 13 deletions

View File

@ -1,5 +1,8 @@
name: build
on: [ pull_request, push ]
on:
pull_request: {}
push: {}
workflow_dispatch: {}
jobs:
build:
@ -9,14 +12,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
uses: https://git.bitheaven.ru/actions/checkout@v2
- name: setup jdk ${{ matrix.java }}
uses: actions/setup-java@v1
uses: https://git.bitheaven.ru/actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- uses: actions/cache@v2
- uses: https://git.bitheaven.ru/actions/cache@v2
with:
path: |
~/.gradle/caches
@ -32,7 +35,7 @@ jobs:
run: ./gradlew build
- name: capture build artifacts
uses: actions/upload-artifact@v2
uses: https://git.bitheaven.ru/actions/upload-artifact@v2
with:
name: Artifacts
path: build/libs/

View File

@ -10,8 +10,7 @@ targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
group = project.maven_group
//String buildNumber = System.getenv("GITHUB_RUN_NUMBER")
String buildNumber = 4
String buildNumber = System.getenv("GITEA_RUN_NUMBER")
version = "${mod_version}+${minecraft_version}" + (buildNumber != null ? "-${buildNumber}" : "")
repositories {

View File

@ -25,7 +25,7 @@ public class CreateAirFabric implements ModInitializer {
}
public static boolean airQualityActivatesHelmet(LivingEntity entity) {
final var air = AirHelper.getO2LevelFromLocation(entity.getEyePosition(), entity.level()).getFirst();
final AirQualityLevel air = AirHelper.getO2LevelFromLocation(entity.getEyePosition(), entity.level()).getFirst();
return air == AirQualityLevel.RED || air == AirQualityLevel.YELLOW;
}

View File

@ -1,18 +1,14 @@
package ru.bitheaven.createairfabric.mixin;
import fuzs.thinair.helper.AirHelper;
import fuzs.thinair.helper.AirQualityLevel;
import net.minecraft.tags.TagKey;
import net.minecraft.world.entity.LivingEntity;
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 ru.bitheaven.createairfabric.CreateAirFabric;
import com.simibubi.create.content.equipment.armor.DivingHelmetItem;
import net.minecraft.world.entity.LivingEntity;
@Mixin(DivingHelmetItem.class)
public abstract class DivingHelmetItemMixin {
/**