From f113b0e312fe094ba7b8a15f5697b65d1cf01a61 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Wed, 19 Jan 2022 20:54:24 +0000 Subject: [PATCH] Fix server only, and broken test. --- .../providers/minecraft/MinecraftLibraryProvider.java | 2 +- .../simple/src/main/java/net/fabricmc/example/ExampleMod.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftLibraryProvider.java b/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftLibraryProvider.java index b131189..66f2c4b 100644 --- a/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftLibraryProvider.java +++ b/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/MinecraftLibraryProvider.java @@ -65,7 +65,7 @@ public class MinecraftLibraryProvider { // Client only library, or legacy version project.getDependencies().add(Constants.Configurations.MINECRAFT_DEPENDENCIES, library.name()); } else { - throw new RuntimeException("Library %s was not added to a configuration".formatted(library.name())); + project.getLogger().debug("Minecraft library ({}) was not added to any configuration", library.name()); } } diff --git a/src/test/resources/projects/simple/src/main/java/net/fabricmc/example/ExampleMod.java b/src/test/resources/projects/simple/src/main/java/net/fabricmc/example/ExampleMod.java index 7155f5a..bd3cb84 100644 --- a/src/test/resources/projects/simple/src/main/java/net/fabricmc/example/ExampleMod.java +++ b/src/test/resources/projects/simple/src/main/java/net/fabricmc/example/ExampleMod.java @@ -9,6 +9,6 @@ public class ExampleMod implements ModInitializer { @Override public void onInitialize() { - LOGGER.info("Hello Fabric world!"); + LOGGER.info("Hello simple Fabric mod!"); } } \ No newline at end of file