mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-26 04:25:15 +01:00
Fixing wheat recognition
This commit is contained in:
parent
4f87750bfa
commit
bf470202f4
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user