From d9dded972660ae61e6193ffd72ffd95ba2ae9316 Mon Sep 17 00:00:00 2001 From: BitHeaven Date: Tue, 21 Jan 2025 17:23:59 +0500 Subject: [PATCH] Remove unused lines --- .gitea/workflows/build.yml | 2 +- build.gradle | 28 +------------------ settings.gradle | 4 +++ .../mixin/EntityOxygenSystemMixin.java | 1 - 4 files changed, 6 insertions(+), 29 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1de034f..98ca2e9 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -39,7 +39,7 @@ jobs: uses: gradle/wrapper-validation-action@v2 - name: Build with Gradle - run: ./gradlew build --no-daemon + run: ./gradlew clean build --no-daemon - name: Upload Mod JAR uses: actions/upload-artifact@v3 diff --git a/build.gradle b/build.gradle index a04a5c2..4f696ba 100644 --- a/build.gradle +++ b/build.gradle @@ -18,19 +18,7 @@ repositories { // Loom adds the essential maven repositories to download Minecraft and libraries from automatically. // See https://docs.gradle.org/current/userguide/declaring_repositories.html // for more information about repositories. - maven { url = "https://maven.shedaniel.me/" } // Cloth Config, REI - maven { url = "https://maven.blamejared.com" } // JEI - maven { - name = 'ParchmentMC' - url = 'https://maven.parchmentmc.org' - } - maven { - name = 'Quilt' - url = 'https://maven.quiltmc.org/repository/release' - } - maven { url = "https://api.modrinth.com/maven" } // LazyDFU maven { url = "https://maven.terraformersmc.com/releases/" } // Mod Menu - maven { url = "https://cursemaven.com" } // Forge Config API Port maven { url = "https://maven.jamieswhiteshirt.com/libs-release" } // Reach Entity Attributes maven { // Fabric ASM for Porting Lib url = "https://jitpack.io/" @@ -54,20 +42,6 @@ repositories { } } -loom { - // Loom and Loader both use this block in order to gather more information about your mod. - mods { - // This should match your mod id. - "ru.bitheaven.createairfabric" { - // Tell Loom about each source set used by your mod here. This ensures that your mod's classes are properly transformed by Loader. - sourceSet("main") - // If you shade (directly include classes, not JiJ) a dependency into your mod, include it here using one of these methods: - // dependency("com.example.shadowedmod:1.2.3") - // configuration("exampleShadedConfigurationName") - } - } -} - // All the dependencies are declared at gradle/libs.version.toml and referenced with "libs." dependencies { minecraft libs.minecraft @@ -124,7 +98,7 @@ java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 - withSourcesJar() +// withSourcesJar() } jar { diff --git a/settings.gradle b/settings.gradle index f91a4fe..c17c140 100644 --- a/settings.gradle +++ b/settings.gradle @@ -4,6 +4,10 @@ pluginManagement { name = 'Fabric' url = 'https://maven.fabricmc.net/' } + maven { + name = 'Quilt' + url = 'https://maven.quiltmc.org/repository/release' + } gradlePluginPortal() } } diff --git a/src/main/java/ru/bitheaven/createairfabric/mixin/EntityOxygenSystemMixin.java b/src/main/java/ru/bitheaven/createairfabric/mixin/EntityOxygenSystemMixin.java index f326d2e..ccf7b2b 100644 --- a/src/main/java/ru/bitheaven/createairfabric/mixin/EntityOxygenSystemMixin.java +++ b/src/main/java/ru/bitheaven/createairfabric/mixin/EntityOxygenSystemMixin.java @@ -4,7 +4,6 @@ import com.llamalad7.mixinextras.injector.ModifyExpressionValue; import com.simibubi.create.content.equipment.armor.BacktankItem; import com.simibubi.create.content.equipment.armor.BacktankUtil; import com.simibubi.create.content.equipment.armor.DivingHelmetItem; - import earth.terrarium.adastra.common.systems.OxygenApiImpl; import earth.terrarium.adastra.common.tags.ModItemTags; import net.minecraft.server.level.ServerLevel;