Compare commits
4 Commits
createairf
...
956d2e6b53
Author | SHA1 | Date | |
---|---|---|---|
956d2e6b53 | |||
ed146f441d | |||
be9a4bdd59 | |||
2c386caace |
@ -8,25 +8,25 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java: [ 17 ]
|
java: '17'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repository
|
- name: checkout repository
|
||||||
uses: https://git.bitheaven.ru/actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: setup jdk ${{ matrix.java }}
|
- name: setup jdk ${{ matrix.java }}
|
||||||
uses: https://git.bitheaven.ru/actions/setup-java@v1
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
|
distribution: 'liberica'
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
|
|
||||||
- uses: https://git.bitheaven.ru/actions/cache@v2
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
~/.gradle/loom-cache
|
~/.gradle/loom-cache
|
||||||
~/.gradle/wrapper
|
~/.gradle/wrapper
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle-wrapper.properties') }}
|
||||||
restore-keys: ${{ runner.os }}-gradle
|
|
||||||
|
|
||||||
- name: make gradle wrapper executable
|
- name: make gradle wrapper executable
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
@ -34,8 +34,11 @@ jobs:
|
|||||||
- name: build
|
- name: build
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
|
|
||||||
- name: capture build artifacts
|
- name: Make release
|
||||||
uses: https://git.bitheaven.ru/actions/upload-artifact@v2
|
uses: actions/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
name: Artifacts
|
name: Create Air Fabric 1.0-${{ gitea.run_id }} for 1.20.1
|
||||||
path: build/libs/
|
md5sum: true
|
||||||
|
sha256sum: true
|
||||||
|
files: |-
|
||||||
|
build/libs/**
|
||||||
|
@ -71,6 +71,8 @@ dependencies {
|
|||||||
modLocalRuntime("maven.modrinth:lazydfu:${lazydfu_version}")
|
modLocalRuntime("maven.modrinth:lazydfu:${lazydfu_version}")
|
||||||
modLocalRuntime("com.terraformersmc:modmenu:${modmenu_version}")
|
modLocalRuntime("com.terraformersmc:modmenu:${modmenu_version}")
|
||||||
|
|
||||||
|
include(implementation(annotationProcessor("io.github.llamalad7:mixinextras-fabric:0.4.1")))
|
||||||
|
|
||||||
// Recipe Viewers - Create Fabric supports JEI, REI, and EMI.
|
// Recipe Viewers - Create Fabric supports JEI, REI, and EMI.
|
||||||
// See root gradle.properties to choose which to use at runtime.
|
// See root gradle.properties to choose which to use at runtime.
|
||||||
switch (recipe_viewer.toLowerCase(Locale.ROOT)) {
|
switch (recipe_viewer.toLowerCase(Locale.ROOT)) {
|
||||||
|
@ -6,6 +6,7 @@ import net.minecraft.world.level.material.Fluid;
|
|||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
|
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
||||||
import com.simibubi.create.content.equipment.armor.DivingHelmetItem;
|
import com.simibubi.create.content.equipment.armor.DivingHelmetItem;
|
||||||
import ru.bitheaven.createairfabric.CreateAirFabric;
|
import ru.bitheaven.createairfabric.CreateAirFabric;
|
||||||
|
|
||||||
@ -14,7 +15,7 @@ public abstract class DivingHelmetItemMixin {
|
|||||||
/**
|
/**
|
||||||
* Activate helmet "if in water or lava" -> "if in water or bad air or lava"
|
* Activate helmet "if in water or lava" -> "if in water or bad air or lava"
|
||||||
*/
|
*/
|
||||||
@Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;isEyeInFluid(Lnet/minecraft/tags/TagKey;)Z"),
|
@ModifyExpressionValue(at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;isEyeInFluid(Lnet/minecraft/tags/TagKey;)Z"),
|
||||||
method = "breatheUnderwater(Lnet/minecraft/world/entity/LivingEntity;)V")
|
method = "breatheUnderwater(Lnet/minecraft/world/entity/LivingEntity;)V")
|
||||||
private static boolean redirectBreatheUnderwater(LivingEntity entity, TagKey<Fluid> fluidTagKey) {
|
private static boolean redirectBreatheUnderwater(LivingEntity entity, TagKey<Fluid> fluidTagKey) {
|
||||||
boolean oxygen = true;
|
boolean oxygen = true;
|
||||||
|
Reference in New Issue
Block a user