diff --git a/src/main/java/carpettisaddition/translations/TISAdditionTranslations.java b/src/main/java/carpettisaddition/translations/TISAdditionTranslations.java index 39b475cb3..fc544e86a 100644 --- a/src/main/java/carpettisaddition/translations/TISAdditionTranslations.java +++ b/src/main/java/carpettisaddition/translations/TISAdditionTranslations.java @@ -8,6 +8,7 @@ import carpettisaddition.utils.FileUtil; import carpettisaddition.utils.Messenger; import com.google.common.collect.Maps; +import net.fabricmc.loader.api.FabricLoader; import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.text.BaseText; import net.minecraft.text.HoverEvent; @@ -76,6 +77,10 @@ private static void loadTranslation(String lang) catch (Exception e) { CarpetTISAdditionServer.LOGGER.error("Failed to load translation of language " + lang, e); + if (FabricLoader.getInstance().isDevelopmentEnvironment()) + { + throw e; + } return Collections.emptyMap(); } });