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