From caa850ff55576c8aef92c28ab5dcf87a319f6e3a Mon Sep 17 00:00:00 2001 From: shedaniel Date: Wed, 9 Feb 2022 20:17:34 +0800 Subject: Migrate to Cloth Config's ValueAnimator, and add option to cache entry renders --- .../rei/fabric/RoughlyEnoughItemsInitializerImpl.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'fabric/src/main/java/me') diff --git a/fabric/src/main/java/me/shedaniel/rei/fabric/RoughlyEnoughItemsInitializerImpl.java b/fabric/src/main/java/me/shedaniel/rei/fabric/RoughlyEnoughItemsInitializerImpl.java index 0a59b313d..391b8ce9e 100644 --- a/fabric/src/main/java/me/shedaniel/rei/fabric/RoughlyEnoughItemsInitializerImpl.java +++ b/fabric/src/main/java/me/shedaniel/rei/fabric/RoughlyEnoughItemsInitializerImpl.java @@ -62,7 +62,7 @@ public class RoughlyEnoughItemsInitializerImpl { RoughlyEnoughItemsState.error("Architectury API is not installed!", "https://www.curseforge.com/minecraft/mc-mods/architectury-fabric/files/all"); } else { Version version = FabricLoader.getInstance().getModContainer("architectury").get().getMetadata().getVersion(); - + try { if (version instanceof SemanticVersion && SemanticVersion.parse("2.6.0").compareTo((SemanticVersion) version) > 0) { RoughlyEnoughItemsState.error("Architectury API is too old, please update!", "https://www.curseforge.com/minecraft/mc-mods/architectury-fabric/files/all"); @@ -72,14 +72,8 @@ public class RoughlyEnoughItemsInitializerImpl { } } if (isClient()) { - try { - if (!FabricLoader.getInstance().isModLoaded("cloth-config2")) { - RoughlyEnoughItemsState.error("Cloth Config is not installed!", "https://www.curseforge.com/minecraft/mc-mods/cloth-config/files/all"); - } else if (SemanticVersion.parse(FabricLoader.getInstance().getModContainer("cloth-config2").get().getMetadata().getVersion().getFriendlyString()).compareTo(SemanticVersion.parse("5.1")) < 0) { - RoughlyEnoughItemsState.error("Your Cloth Config version is too old!", "https://www.curseforge.com/minecraft/mc-mods/cloth-config/files/all"); - } - } catch (VersionParsingException e) { - e.printStackTrace(); + if (!FabricLoader.getInstance().isModLoaded("cloth-config2")) { + RoughlyEnoughItemsState.error("Cloth Config is not installed!", "https://www.curseforge.com/minecraft/mc-mods/cloth-config/files/all"); } } } -- cgit