diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 6fa4daa8f..cd327efe9 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -17,13 +17,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up JDK 8 - uses: actions/setup-java@v2 - with: - java-version: '8' - distribution: 'adopt' - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew fullbuild + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build and Publish + run: ./gradlew fullbuild artifactoryPublish + env: + MAVEN_URL: ${{ secrets.MAVEN_URL }} + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_TOKEN }} + MAVEN_REPO: ${{ secrets.MAVEN_DEVREPO }} + BUILD_VER: '-${{ github.run_number }}' diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e76d82625..abad95469 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -26,3 +26,4 @@ jobs: MAVEN_URL: ${{ secrets.MAVEN_URL }} MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_TOKEN }} + MAVEN_REPO: ${{ secrets.MAVEN_REPO }} diff --git a/README.md b/README.md index 8d195bbc5..aa4093a21 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ You will find the files inside ./output/ + [Thorfusion/TerralizationCompat](https://github.com/Thorfusion/TerralizationCompat) + [Thorfusion/Titanpower](https://github.com/Thorfusion/Titanpower) +Also visit our [wiki](https://github.com/Thorfusion/Mekanism-Community-Edition/wiki/API) explaining how to use the new MEK:CE api + ## Official Modpacks ### [Terralization](https://www.technicpack.net/modpack/terralization.654195) ### [The Lost Era](https://modrinth.com/modpack/the-lost-era) @@ -29,6 +31,8 @@ You need to include the [LICENSE](https://raw.githubusercontent.com/Thorfusion/M Mekanism CE has continued the use of the update notifier but changed the config name to v2. This is to notify people making the switch to CE of this feature. It is recommended for modpacks to disable this. +Also visit our [wiki](https://github.com/Thorfusion/Mekanism-Community-Edition/wiki/Configuration) regarding configuration. + ## Required Dependencies Mekanism CE also has two dependencies that it requires, as a modpack creator DO NOT USE the automatic downloader to get those file. It puts alot of strain to my server network. diff --git a/build.gradle b/build.gradle index d5328dbc4..79c51d293 100644 --- a/build.gradle +++ b/build.gradle @@ -175,7 +175,7 @@ artifactory { contextUrl = System.getenv("MAVEN_URL") publish { repository { - repoKey = 'thorfusion' + repoKey = System.getenv("MAVEN_REPO") username = System.getenv("MAVEN_USERNAME") password = System.getenv("MAVEN_PASSWORD") maven = true @@ -189,7 +189,7 @@ artifactory { } resolve { repository { - repoKey = 'central' + repoKey = System.getenv("MAVEN_REPO") username = System.getenv("MAVEN_USERNAME") password = System.getenv("MAVEN_PASSWORD") maven = true @@ -203,7 +203,11 @@ publishing { mavenJava(MavenPublication) { artifactId = project.archivesBaseName groupId = project.group - version = project.version + if (System.getenv("BUILD_VER") == null){ + version = project.version + } else { + version = project.version + System.getenv("BUILD_VER") + } artifacts = [toolsJar, coreJar, generatorsJar, MDKZip, alltJar, apiJar] components.java.withVariantsFromConfiguration(configurations.runtimeElements) { skip() diff --git a/src/main/java/mekanism/api/gas/GasifyableItems.java b/src/main/java/mekanism/api/gas/GasifyableItems.java index 291144375..1fe4b2e6f 100644 --- a/src/main/java/mekanism/api/gas/GasifyableItems.java +++ b/src/main/java/mekanism/api/gas/GasifyableItems.java @@ -4,6 +4,7 @@ import mekanism.common.util.MekanismUtils; import net.minecraft.item.ItemStack; import java.util.ArrayList; + import java.util.HashMap; import java.util.List; @@ -50,6 +51,7 @@ public class GasifyableItems { return null; } + /** * defines which gases the Chemical Injection Chamber can accept. * @param gas type of gas to check validity diff --git a/src/main/java/mekanism/common/Mekanism.java b/src/main/java/mekanism/common/Mekanism.java index 0dcdeee5e..fd3c77d33 100644 --- a/src/main/java/mekanism/common/Mekanism.java +++ b/src/main/java/mekanism/common/Mekanism.java @@ -1449,6 +1449,7 @@ public class Mekanism GasifyableItems.registerGasifyables("dustSalt", GasRegistry.getGas("hydrogenChloride"), 2); GasifyableItems.registerGasifyables("dustSugar", GasRegistry.getGas("molasse"), 90); GasifyableItems.registerGasifyables("listAllSugar", GasRegistry.getGas("molasse"), 90); + GasifyableItems.registerGasifyables(GasRegistry.getGas("water")); Mekanism.proxy.preInit(); diff --git a/src/main/java/mekanism/common/tile/TileEntityChemicalInjectionChamber.java b/src/main/java/mekanism/common/tile/TileEntityChemicalInjectionChamber.java index e2119c726..67ad8d074 100644 --- a/src/main/java/mekanism/common/tile/TileEntityChemicalInjectionChamber.java +++ b/src/main/java/mekanism/common/tile/TileEntityChemicalInjectionChamber.java @@ -100,7 +100,9 @@ public class TileEntityChemicalInjectionChamber extends TileEntityAdvancedElectr @Override public boolean isValidGas(Gas gas) { + return GasifyableItems.isGasValidGasifyable(gas); + } @Override