1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

Fixing wheat recognition

This commit is contained in:
Zrips 2021-07-15 14:28:41 +03:00
parent 4f87750bfa
commit bf470202f4
2 changed files with 6 additions and 0 deletions

View File

@ -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) {

View File

@ -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;