aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm/shsupercm/fabric/citresewn/mixin
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-07-01 06:55:12 +0300
committerSHsuperCM <shsupercm@gmail.com>2022-07-01 06:55:12 +0300
commita27c4136009f95eb1e1c8f4d60789c471ace4dcb (patch)
tree0b9c2a4bc2ce47841d6c69734940692d27babb28 /src/main/java/shcm/shsupercm/fabric/citresewn/mixin
parent2a1fe1d2a01ad85acaf539d20ab154369a7bf325 (diff)
downloadCITResewn-a27c4136009f95eb1e1c8f4d60789c471ace4dcb.tar.gz
CITResewn-a27c4136009f95eb1e1c8f4d60789c471ace4dcb.tar.bz2
CITResewn-a27c4136009f95eb1e1c8f4d60789c471ace4dcb.zip
Removed dev debug message from logs
Fixes #164 #166
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/mixin')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/IdentifierMixin.java5
1 files changed, 4 insertions, 1 deletions
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);
}
}