diff --git a/src/main/java/com/simibubi/create/compat/Mods.java b/src/main/java/com/simibubi/create/compat/Mods.java index 909569e04..785889e6f 100644 --- a/src/main/java/com/simibubi/create/compat/Mods.java +++ b/src/main/java/com/simibubi/create/compat/Mods.java @@ -14,6 +14,7 @@ import net.minecraftforge.registries.ForgeRegistries; * For compatibility with and without another mod present, we have to define load conditions of the specific code */ public enum Mods { + AETHER, COMPUTERCRAFT, CONNECTIVITY, CURIOS, diff --git a/src/main/java/com/simibubi/create/content/trains/track/AllPortalTracks.java b/src/main/java/com/simibubi/create/content/trains/track/AllPortalTracks.java index 05ae7898c..f252f7757 100644 --- a/src/main/java/com/simibubi/create/content/trains/track/AllPortalTracks.java +++ b/src/main/java/com/simibubi/create/content/trains/track/AllPortalTracks.java @@ -3,6 +3,7 @@ package com.simibubi.create.content.trains.track; import java.util.function.Function; import java.util.function.UnaryOperator; +import com.simibubi.create.compat.Mods; import com.simibubi.create.content.contraptions.glue.SuperGlueEntity; import com.simibubi.create.foundation.utility.AttachedRegistry; import com.simibubi.create.foundation.utility.BlockFace; @@ -61,7 +62,8 @@ public class AllPortalTracks { public static void registerDefaults() { registerIntegration(Blocks.NETHER_PORTAL, AllPortalTracks::nether); - registerIntegration(new ResourceLocation("aether", "aether_portal"), AllPortalTracks::aether); + if (Mods.AETHER.isLoaded()) + registerIntegration(new ResourceLocation("aether", "aether_portal"), AllPortalTracks::aether); } private static Pair nether(Pair inbound) {