mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
Update preloader to 0.1.1
Restore AT function (went missing in a merge), add verbose log toggle, reinforce PropertyManager.
This commit is contained in:
1 parent
ec005e14ad
commit
7c68cfbcc5
3 files changed
+91
-35
No files matched your search
@@ -20,15 +20,16 @@ import tconstruct.preloader.helpers.PropertyManager.PropAccessException;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class TConstructLoaderContainer extends DummyModContainer implements IFMLLoadingPlugin
|
||||
{
|
||||
|
||||
private final String[] asmTransformers = new String[] { "tconstruct.preloader.ASMInterfaceRepair" };
|
||||
private final String[] asmTransformers = new String[] { "tconstruct.preloader.ASMInterfaceRepair", "tconstruct.preloader.AccessTransformers" };
|
||||
private final ModMetadata md = new ModMetadata();
|
||||
|
||||
public static Logger logger = Logger.getLogger("TCon-Preloader");
|
||||
public static Logger logger = Logger.getLogger("TCorestruct");
|
||||
|
||||
public TConstructLoaderContainer()
|
||||
{
|
||||
@@ -45,22 +46,30 @@ public class TConstructLoaderContainer extends DummyModContainer implements IFML
|
||||
logger.severe(Arrays.toString(ex.getStackTrace()));
|
||||
}
|
||||
|
||||
if (PropertyManager.preloaderContainer_verboseLog)
|
||||
{
|
||||
// Log ALL the things.
|
||||
logger.warning("The preloader will now log absolutely everything. To disable this, either change preloaderContainer_verboseLog");
|
||||
logger.warning("in (or delete the config file) '" + PropertyManager.propFileName + "'.");
|
||||
logger.setLevel(Level.ALL);
|
||||
}
|
||||
|
||||
if (PropertyManager.asmInterfaceRepair_verboseLog)
|
||||
{
|
||||
logger.warning("ASM Interface Repair is set to be verbose, this is NOT GOOD FOR SERVERS, as it will spam the logs!");
|
||||
logger.warning("The debug mode is for debug use only. Turn it off unless instructed otherwise by a TCon developer!");
|
||||
logger.warning("The debug mode is for debug use only. Turn it off unless instructed otherwise by a TCon developer.");
|
||||
logger.warning("To reset advanced settings to default, delete the '" + PropertyManager.propFileName + "' file from the config folder.");
|
||||
}
|
||||
|
||||
md.autogenerated = true;
|
||||
md.credits = "AlgorithmX2 (original) and Sunstrike (porting)";
|
||||
md.credits = "AlgorithmX2 and Sunstrike";
|
||||
md.modId = getModId();
|
||||
md.version = getVersion();
|
||||
md.name = getName();
|
||||
md.authorList = Arrays.asList("AlgorithmX2", "Sunstrike");
|
||||
}
|
||||
|
||||
@ForgeSubscribe
|
||||
/*@ForgeSubscribe
|
||||
public void preInit (FMLPreInitializationEvent evt)
|
||||
{
|
||||
|
||||
@@ -76,7 +85,7 @@ public class TConstructLoaderContainer extends DummyModContainer implements IFML
|
||||
public void postInit (FMLPostInitializationEvent evt)
|
||||
{
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
@Override
|
||||
public String getModId ()
|
||||
@@ -93,7 +102,7 @@ public class TConstructLoaderContainer extends DummyModContainer implements IFML
|
||||
@Override
|
||||
public String getVersion ()
|
||||
{
|
||||
return "0.0.1";
|
||||
return "0.1.1";
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -115,12 +124,6 @@ public class TConstructLoaderContainer extends DummyModContainer implements IFML
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
public String[] getLibraryRequestClass ()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getASMTransformerClass ()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user