Compare commits

...

2 Commits

Author SHA1 Message Date
4f78c9bd03 Update Java
Some checks failed
build / build (17) (push) Failing after 5m5s
build / upload-release (push) Has been cancelled
2025-01-21 14:58:17 +05:00
6032f8af2b Change Entity to LivingEntity 2025-01-21 14:58:06 +05:00
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ jobs:
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'liberica'
distribution: 'oracle'
java-version: ${{ matrix.java }}
- name: Cache Gradle packages

View File

@ -5,7 +5,7 @@ import earth.terrarium.adastra.api.systems.OxygenApi;
import fuzs.thinair.helper.AirQualityHelperImpl;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.LivingEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -19,7 +19,7 @@ public class CreateAirFabric implements ModInitializer {
LOGGER.info("Create addon mod [{}] is loading alongside Create [{}]!", NAME, Create.VERSION);
}
public static boolean isOxygen(Entity entity) {
public static boolean isOxygen(LivingEntity entity) {
boolean oxygen = true;
if (FabricLoader.getInstance().isModLoaded("thinair")) {
oxygen &= new AirQualityHelperImpl()