Compare commits
No commits in common. "46a668339c63db721ffc46de14cc34134b950f9a" and "5bf98c82488f1d4c3849bbb966f06b3f9c2d8c96" have entirely different histories.
46a668339c
...
5bf98c8248
15
build.gradle
15
build.gradle
|
@ -31,15 +31,10 @@ repositories {
|
|||
maven { url = "https://jitpack.io/" } // Mixin Extras, Fabric ASM
|
||||
maven { url = "https://maven.tterrag.com/" } // Flywheel
|
||||
|
||||
exclusiveContent {
|
||||
forRepository {
|
||||
maven {
|
||||
name = "Modrinth"
|
||||
url = "https://api.modrinth.com/maven"
|
||||
}
|
||||
}
|
||||
filter {
|
||||
includeGroup "maven.modrinth"
|
||||
maven {
|
||||
url 'https://www.cursemaven.com'
|
||||
content {
|
||||
includeGroup "curse.maven"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +56,7 @@ dependencies {
|
|||
modImplementation("com.simibubi.create:create-fabric-${minecraft_version}:${create_version}")
|
||||
|
||||
// Thin Air
|
||||
modImplementation("maven.modrinth:thin-air:v8.1.3-1.20.1-Fabric")
|
||||
modImplementation("curse.maven:new-thin-air-878379:4611944")
|
||||
|
||||
// Development QOL
|
||||
modLocalRuntime("maven.modrinth:lazydfu:${lazydfu_version}")
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
package ru.bitheaven.createairfabric;
|
||||
|
||||
import com.simibubi.create.Create;
|
||||
import fuzs.thinair.helper.AirQualityHelperImpl;
|
||||
import fuzs.thinair.helper.AirHelper;
|
||||
import fuzs.thinair.helper.AirQualityLevel;
|
||||
import io.github.fabricators_of_create.porting_lib.util.EnvExecutor;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import net.minecraft.resources.ResourceLocation;
|
||||
|
@ -24,8 +25,8 @@ public class CreateAirFabric implements ModInitializer {
|
|||
}
|
||||
|
||||
public static boolean airQualityActivatesHelmet(LivingEntity entity) {
|
||||
AirQualityHelperImpl air = new AirQualityHelperImpl();
|
||||
return !air.getAirQualityAtLocation(entity.level(), entity.getEyePosition()).canBreathe;
|
||||
final AirQualityLevel air = AirHelper.getO2LevelFromLocation(entity.getEyePosition(), entity.level()).getFirst();
|
||||
return air == AirQualityLevel.RED || air == AirQualityLevel.YELLOW;
|
||||
}
|
||||
|
||||
public static ResourceLocation id(String path) {
|
||||
|
|
Loading…
Reference in New Issue