From bf470202f4d9fe84e37b3bcf36bf4de169149c88 Mon Sep 17 00:00:00 2001 From: Zrips Date: Thu, 15 Jul 2021 14:28:41 +0300 Subject: [PATCH] Fixing wheat recognition --- .../com/gamingmesh/jobs/config/NameTranslatorManager.java | 5 +++++ src/main/java/com/gamingmesh/jobs/container/JobInfo.java | 1 + 2 files changed, 6 insertions(+) diff --git a/src/main/java/com/gamingmesh/jobs/config/NameTranslatorManager.java b/src/main/java/com/gamingmesh/jobs/config/NameTranslatorManager.java index 9c2b0991..e820048c 100644 --- a/src/main/java/com/gamingmesh/jobs/config/NameTranslatorManager.java +++ b/src/main/java/com/gamingmesh/jobs/config/NameTranslatorManager.java @@ -24,6 +24,7 @@ import com.gamingmesh.jobs.stuff.Util; import net.Zrips.CMILib.Entities.CMIEntityType; import net.Zrips.CMILib.FileHandler.ConfigReader; import net.Zrips.CMILib.Items.CMIMaterial; +import net.Zrips.CMILib.Logs.CMIDebug; public class NameTranslatorManager { @@ -54,8 +55,12 @@ public class NameTranslatorManager { case STRIPLOGS: String matName = materialName; materialName = materialName.replace(" ", ""); + + if (materialName.contains(":")) + materialName = materialName.split(":")[0]; CMIMaterial mat = CMIMaterial.get(materialName); + NameList nameLs = listOfNames.get(mat); if (nameLs != null) { diff --git a/src/main/java/com/gamingmesh/jobs/container/JobInfo.java b/src/main/java/com/gamingmesh/jobs/container/JobInfo.java index 05460f28..4e2c639b 100644 --- a/src/main/java/com/gamingmesh/jobs/container/JobInfo.java +++ b/src/main/java/com/gamingmesh/jobs/container/JobInfo.java @@ -22,6 +22,7 @@ import com.gamingmesh.jobs.Jobs; import net.Zrips.CMILib.Colors.CMIChatColor; import net.Zrips.CMILib.Equations.Parser; +import net.Zrips.CMILib.Logs.CMIDebug; public class JobInfo { private ActionType actionType;