Little updates
This commit is contained in:
parent
e363840c9e
commit
fd5ef6c9f7
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue