From 939a56090bd955560d84c96988a9ca8c575945c2 Mon Sep 17 00:00:00 2001 From: bitheaven Date: Sun, 5 Nov 2023 13:20:33 +0500 Subject: [PATCH] Remove old project lines --- build.gradle | 3 --- .../createinteriorsfabric/CreateInteriorsFabric.java | 9 +-------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index a651f1e..d8a0ffb 100644 --- a/build.gradle +++ b/build.gradle @@ -55,9 +55,6 @@ dependencies { // Create - dependencies are added transitively modImplementation("com.simibubi.create:create-fabric-${minecraft_version}:${create_version}") - // Ad Astra - modImplementation("curse.maven:ad-astra-635042:4774341") - // Development QOL modLocalRuntime("maven.modrinth:lazydfu:${lazydfu_version}") modLocalRuntime("com.terraformersmc:modmenu:${modmenu_version}") diff --git a/src/main/java/ru/bitheaven/createinteriorsfabric/CreateInteriorsFabric.java b/src/main/java/ru/bitheaven/createinteriorsfabric/CreateInteriorsFabric.java index dd22ad8..9d3b402 100644 --- a/src/main/java/ru/bitheaven/createinteriorsfabric/CreateInteriorsFabric.java +++ b/src/main/java/ru/bitheaven/createinteriorsfabric/CreateInteriorsFabric.java @@ -1,12 +1,9 @@ package ru.bitheaven.createinteriorsfabric; import com.simibubi.create.Create; -import earth.terrarium.ad_astra.common.util.OxygenUtils; import io.github.fabricators_of_create.porting_lib.util.EnvExecutor; import net.fabricmc.api.ModInitializer; import net.minecraft.resources.ResourceLocation; -import net.minecraft.world.entity.LivingEntity; -import net.minecraft.world.level.Level; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -24,11 +21,7 @@ public class CreateInteriorsFabric implements ModInitializer { ), NAME); } - public static boolean airQualityActivatesHelmet(LivingEntity entity) { - final Level level = entity.level(); - final boolean air = OxygenUtils.levelHasOxygen(level); - return !air || entity.isUnderWater(); - } + public static ResourceLocation id(String path) { return new ResourceLocation(ID, path);