quick fix

This commit is contained in:
StevenRS11
2014-04-03 15:55:35 -04:00
parent 99476f8d70
commit d98b6279de
2 changed files with 3 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ public class DDSaveHandler
// Don't surround this code with try-catch. Our mod should crash if an error // Don't surround this code with try-catch. Our mod should crash if an error
// occurs at this level, since it could lead to some nasty problems. // occurs at this level, since it could lead to some nasty problems.
DDLogger.logger().startTimer("Loading data"); DDLogger.startTimer("Loading data");
String basePath = DimensionManager.getCurrentSaveRootDirectory() + "/DimensionalDoors/data/"; String basePath = DimensionManager.getCurrentSaveRootDirectory() + "/DimensionalDoors/data/";
File dataDirectory = new File(basePath); File dataDirectory = new File(basePath);

View File

@@ -15,7 +15,7 @@ public class DDLogger
this.log.append("Logger started.\n"); this.log.append("Logger started.\n");
} }
private static DDLogger logger() public static DDLogger logger()
{ {
if( instance == null) if( instance == null)
{ {
@@ -35,10 +35,9 @@ public class DDLogger
{ {
this.description=description; this.description=description;
} }
private DDTimer start() private void start()
{ {
this.startTime=System.nanoTime(); this.startTime=System.nanoTime();
return this;
} }
private void stop(long endTime) private void stop(long endTime)
{ {