From 6d609f499069ed4ae4e808ccc446c6acda51cdec Mon Sep 17 00:00:00 2001 From: Draknyte1 Date: Fri, 20 Jan 2017 16:56:01 +1000 Subject: + Added a new kind of logging message, just for machines, so that people may debug them easily without TOTAL DEBUG mode. + Added support for the TreeFarmer to use Saws/Buzzsaws to cut things. They are now required. + Added a GUI for the Tree Farmer. + Added a custom slot class just for Buzzsaw and Saw items. % Tweaked power handling for findLogs() in the Tree Farmer class, it wasn't checking the internal power buffer. --- src/Java/gtPlusPlus/core/util/Utils.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/Java/gtPlusPlus/core/util') diff --git a/src/Java/gtPlusPlus/core/util/Utils.java b/src/Java/gtPlusPlus/core/util/Utils.java index 4d944788dd..1e9661dd30 100644 --- a/src/Java/gtPlusPlus/core/util/Utils.java +++ b/src/Java/gtPlusPlus/core/util/Utils.java @@ -5,6 +5,7 @@ import gregtech.api.enums.TC_Aspects.TC_AspectStack; import gtPlusPlus.GTplusplus; import gtPlusPlus.core.lib.CORE; import gtPlusPlus.core.material.Material; +import gtPlusPlus.core.proxy.ClientProxy; import gtPlusPlus.core.util.fluid.FluidUtils; import gtPlusPlus.core.util.item.ItemUtils; import gtPlusPlus.core.util.math.MathUtils; @@ -163,6 +164,13 @@ public class Utils { //} } + //Non-Dev Comments + public static void LOG_MACHINE_INFO(String s){ + if (CORE.configSwitches.MACHINE_INFO || ClientProxy.playerName.toLowerCase().contains("draknyte1")){ + FMLLog.info("GT++: Machine Info: "+s); + } + } + //Developer Comments public static void LOG_WARNING(String s){ if (CORE.DEBUG){ @@ -180,7 +188,7 @@ public class Utils { //Developer Logger public static void LOG_SPECIFIC_WARNING(String whatToLog, String msg, int line){ //if (!CORE.DEBUG){ - FMLLog.warning("GT++ |"+line+"| "+whatToLog+" | "+msg); + FMLLog.warning("GT++ |"+line+"| "+whatToLog+" | "+msg); //} } @@ -540,7 +548,7 @@ public class Utils { return temp; } - + public static ToolMaterial generateToolMaterial(Material material){ String name = material.getLocalizedName(); int harvestLevel = material.vHarvestLevel; -- cgit