Logger update...
This commit is contained in:
parent
e587dab0aa
commit
44acc2b5e6
3 changed files with 7 additions and 7 deletions
|
@ -117,10 +117,10 @@ public class CamRegistry {
|
|||
}
|
||||
|
||||
public void printRegistry(World worldObj) {
|
||||
WarpDrive.print("Cameras registry for dimension " + worldObj.provider.dimensionId + ":");
|
||||
WarpDrive.logger.info("Cameras registry for dimension " + worldObj.provider.dimensionId + ":");
|
||||
|
||||
for (CamRegistryItem cam : registry) {
|
||||
WarpDrive.print("- " + cam.frequency + " (" + cam.position.chunkPosX + ", " + cam.position.chunkPosY + ", " + cam.position.chunkPosZ + ")");
|
||||
WarpDrive.logger.info("- " + cam.frequency + " (" + cam.position.chunkPosX + ", " + cam.position.chunkPosY + ", " + cam.position.chunkPosZ + ")");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ public final class JumpgatesRegistry {
|
|||
//@SideOnly(Side.CLIENT)
|
||||
public JumpgatesRegistry() {
|
||||
db = new File("gates.txt");
|
||||
WarpDrive.print("Gates.txt file: " + db);
|
||||
WarpDrive.logger.info("Opening gates file '" + db + "'");
|
||||
|
||||
if (db != null && !db.exists()) {
|
||||
try {
|
||||
|
@ -48,7 +48,7 @@ public final class JumpgatesRegistry {
|
|||
}
|
||||
|
||||
public void loadGates() throws IOException {
|
||||
WarpDrive.print("[JUMP GATES] Loading jump gates from gates.txt...");
|
||||
WarpDrive.logger.info("Loading jump gates from gates.txt...");
|
||||
BufferedReader bufferedreader;
|
||||
bufferedreader = new BufferedReader(new FileReader(db));
|
||||
String s1;
|
||||
|
@ -58,7 +58,7 @@ public final class JumpgatesRegistry {
|
|||
}
|
||||
|
||||
bufferedreader.close();
|
||||
WarpDrive.print("[JUMP GATES] Loaded " + gates.size() + " jump gates.");
|
||||
WarpDrive.logger.info("Loaded " + gates.size() + " jump gates.");
|
||||
}
|
||||
|
||||
public void addGate(Jumpgate jg) {
|
||||
|
|
|
@ -80,11 +80,11 @@ public class WarpCoresRegistry {
|
|||
}
|
||||
|
||||
public void printRegistry() {
|
||||
WarpDrive.print("WarpCores registry:");
|
||||
WarpDrive.logger.info("WarpCores registry:");
|
||||
removeDeadCores();
|
||||
|
||||
for (TileEntityReactor core : registry) {
|
||||
WarpDrive.print("- Frequency '" + core.coreFrequency + "' @ '" + core.getWorldObj().provider.getDimensionName() + "' " + core.xCoord + ", "
|
||||
WarpDrive.logger.info("- Frequency '" + core.coreFrequency + "' @ '" + core.getWorldObj().provider.getDimensionName() + "' " + core.xCoord + ", "
|
||||
+ core.yCoord + ", " + core.zCoord + " with " + core.isolationBlocksCount + " isolation blocks");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue