diff options
Diffstat (limited to 'src/main/java/dev/isxander/yacl3')
-rw-r--r-- | src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java | 4 | ||||
-rw-r--r-- | src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java b/src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java index 79c0fdf..bbbeb79 100644 --- a/src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java +++ b/src/main/java/dev/isxander/yacl3/platform/PlatformEntrypoint.java @@ -14,8 +14,8 @@ public class PlatformEntrypoint implements ClientModInitializer { ResourceManagerHelper.get(PackType.CLIENT_RESOURCES).registerReloadListener(new YACLImageReloadListener()); } } -/*?} elif neoforge {*//* -import net.neoforged.bus.api.IEventBus; +/*?} elif neoforge {*/ +/*import net.neoforged.bus.api.IEventBus; import net.neoforged.fml.common.Mod; import net.neoforged.neoforge.client.event.RegisterClientReloadListenersEvent; diff --git a/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java b/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java index 490a5fa..044fbe2 100644 --- a/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java +++ b/src/main/java/dev/isxander/yacl3/platform/YACLPlatform.java @@ -2,8 +2,8 @@ package dev.isxander.yacl3.platform; /*? if fabric {*/ import net.fabricmc.loader.api.FabricLoader; -/*?} elif neoforge {*//* -import net.neoforged.fml.loading.FMLEnvironment; +/*?} elif neoforge {*/ +/*import net.neoforged.fml.loading.FMLEnvironment; import net.neoforged.fml.loading.FMLPaths; *//*?} elif forge {*//* import net.minecraftforge.fml.loading.FMLEnvironment; @@ -44,8 +44,8 @@ public final class YACLPlatform { case CLIENT -> Env.CLIENT; case SERVER -> Env.SERVER; }; - /*?} elif forge-like {*//* - return switch (FMLEnvironment.dist) { + /*?} elif forge-like {*/ + /*return switch (FMLEnvironment.dist) { case CLIENT -> Env.CLIENT; case DEDICATED_SERVER -> Env.SERVER; }; @@ -55,16 +55,16 @@ public final class YACLPlatform { public static Path getConfigDir() { /*? if fabric {*/ return FabricLoader.getInstance().getConfigDir(); - /*?} elif forge-like {*//* - return FMLPaths.CONFIGDIR.get(); + /*?} elif forge-like {*/ + /*return FMLPaths.CONFIGDIR.get(); *//*?}*/ } public static boolean isDevelopmentEnv() { /*? if fabric {*/ return FabricLoader.getInstance().isDevelopmentEnvironment(); - /*?} elif forge-like {*//* - return !FMLEnvironment.production; + /*?} elif forge-like {*/ + /*return !FMLEnvironment.production; *//*?}*/ } } |