diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1c7c714642..e5a1ceb153 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,30 +1,32 @@ -# This workflow will build a Java project with Brachyra -# For more information see: docs/development/brachyura.md +name: Build -name: Java CI with Brachyura - -on: [push, pull_request] +on: [ push, pull_request, workflow_dispatch ] jobs: - build: + Build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Set up JDK 17 - uses: actions/setup-java@v1 - with: - java-version: 17 - - - name: Cache Brachyura directory - uses: actions/cache@v2 - with: - path: | - .brachyura - ~/.brachyura - key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }} - restore-keys: ${{ runner.os }}-brachyura - - - name: Build with Brachyura - run: java -jar brachyura-bootstrap-0.jar build + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-version: 17 + - name: Cache + uses: actions/cache@v3 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + .gradle + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'build.gradle') }} + - name: Build with Gradle + run: | + chmod +x gradlew + ./gradlew build + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: Artifacts-forge + path: ${{ github.workspace }}/build/libs diff --git a/src/main/java/net/coderbot/iris/mixin/compat/epicfight/MixinEpicFightRenderTypes.java b/src/main/java/net/coderbot/iris/mixin/compat/epicfight/MixinEpicFightRenderTypes.java index 9a3952245f..76d14cb6ac 100644 --- a/src/main/java/net/coderbot/iris/mixin/compat/epicfight/MixinEpicFightRenderTypes.java +++ b/src/main/java/net/coderbot/iris/mixin/compat/epicfight/MixinEpicFightRenderTypes.java @@ -12,16 +12,8 @@ @Mixin(EpicFightRenderTypes.class) public class MixinEpicFightRenderTypes { - - @Shadow - private static RenderType enchantedAnimatedArmor() { - return null; - } - @Inject(method = "getArmorVertexBuilder", at = @At("HEAD"), cancellable = true) private static void getArmorVertexBuilder(MultiBufferSource buffer, RenderType renderType, boolean withGlint, CallbackInfoReturnable cir) { - if(withGlint) - cir.setReturnValue(buffer.getBuffer(enchantedAnimatedArmor())); + if(EpicFightRenderTypes.enchantedAnimatedArmor() == renderType) cir.setReturnValue(buffer.getBuffer(renderType)); } - }