Remove unusual? method
This commit is contained in:
		| @ -1,9 +1,8 @@ | ||||
| package ru.bitheaven.createairfabric; | ||||
|  | ||||
| import com.simibubi.create.Create; | ||||
| import earth.terrarium.ad_astra.common.util.OxygenUtils; | ||||
| import earth.terrarium.adastra.api.systems.OxygenApi; | ||||
| import fuzs.thinair.helper.AirQualityHelperImpl; | ||||
| import io.github.fabricators_of_create.porting_lib.util.EnvExecutor; | ||||
| import net.fabricmc.api.ModInitializer; | ||||
| import net.fabricmc.loader.api.FabricLoader; | ||||
| import net.minecraft.world.entity.Entity; | ||||
| @ -18,10 +17,6 @@ public class CreateAirFabric implements ModInitializer { | ||||
|     @Override | ||||
|     public void onInitialize() { | ||||
|         LOGGER.info("Create addon mod [{}] is loading alongside Create [{}]!", NAME, Create.VERSION); | ||||
|         LOGGER.info(EnvExecutor.unsafeRunForDist( | ||||
|                 () -> () -> "{} is accessing Porting Lib from the client!", | ||||
|                 () -> () -> "{} is accessing Porting Lib from the server!" | ||||
|         ), NAME); | ||||
|     } | ||||
|  | ||||
|     public static boolean isOxygen(Entity entity) { | ||||
| @ -31,7 +26,7 @@ public class CreateAirFabric implements ModInitializer { | ||||
|                     .getAirQualityAtLocation(entity.level(), entity.getEyePosition()).canBreathe; | ||||
|         } | ||||
|         if (FabricLoader.getInstance().isModLoaded("ad_astra")) { | ||||
|             oxygen &= OxygenUtils.levelHasOxygen(entity.level()); | ||||
|             oxygen &= OxygenApi.API.hasOxygen(entity.level()); | ||||
|         } | ||||
|         return oxygen; | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user