From a27c4136009f95eb1e1c8f4d60789c471ace4dcb Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Fri, 1 Jul 2022 06:55:12 +0300 Subject: Removed dev debug message from logs Fixes #164 #166 --- .../fabric/citresewn/mixin/broken_paths/IdentifierMixin.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/IdentifierMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/IdentifierMixin.java index 0bc36c3..1c37867 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/IdentifierMixin.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/IdentifierMixin.java @@ -1,5 +1,6 @@ package shcm.shsupercm.fabric.citresewn.mixin.broken_paths; +import net.fabricmc.loader.api.FabricLoader; import net.minecraft.util.Identifier; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; @@ -23,7 +24,9 @@ public class IdentifierMixin { return; if (!cir.getReturnValue()) { - CITResewn.logWarnLoading("Warning: Encountered broken path: \"" + path + "\""); + if (FabricLoader.getInstance().isDevelopmentEnvironment()) + CITResewn.logWarnLoading("Warning: Encountered broken path: \"" + path + "\""); + cir.setReturnValue(true); } } -- cgit