Skip to content

Commit

Permalink
Clean up log outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
oitsjustjose committed Aug 5, 2018
1 parent 4903285 commit ce5204f
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,11 @@ private void convertFromOld(NBTTagCompound nbt)

for (Map.Entry<GeolosysAPI.ChunkPosSerializable, String> e : currentWorldDepositsDeprecated.entrySet())
{
Geolosys.getInstance().LOGGER.info(e.getKey() + "=" + e.getValue());
currentWorldDeposits.put(e.getKey(), e.getValue());
}

for (Map.Entry<GeolosysAPI.ChunkPosSerializable, Boolean> e : regennedChunksDeprecated.entrySet())
{
Geolosys.getInstance().LOGGER.info(e.getKey() + "=" + e.getValue());
regennedChunks.put(e.getKey(), e.getValue());
}

Expand All @@ -181,13 +179,12 @@ private void convertFromOld(NBTTagCompound nbt)
@Override
public void readFromNBT(NBTTagCompound compound)
{
Geolosys.getInstance().LOGGER.info("Reading from NBT");

if (hasOldFiles)
{
Geolosys.getInstance().LOGGER.info("Converting old files");

Geolosys.getInstance().LOGGER.info("Geolosys is converting old persistent files into Forge World Data.");
this.convertFromOld(compound);
Geolosys.getInstance().LOGGER.info("Geolosys World Data conversion complete!");

}
if (compound.hasKey("currentWorldDeposits"))
{
Expand All @@ -206,15 +203,11 @@ public void readFromNBT(NBTTagCompound compound)
regennedChunks.put(GeolosysAPI.chunkPosSerializableFromString(s), compDeposits.getBoolean(s));
}
}

Geolosys.getInstance().LOGGER.info("Done reading");
}

@Override
public NBTTagCompound writeToNBT(NBTTagCompound compound)
{
Geolosys.getInstance().LOGGER.info("Writing to NBT");

if (!compound.hasKey("currentWorldDeposits"))
{
compound.setTag("currentWorldDeposits", new NBTTagCompound());
Expand All @@ -236,8 +229,6 @@ public NBTTagCompound writeToNBT(NBTTagCompound compound)
{
regenDeposits.setBoolean(e.getKey().toString(), e.getValue());
}

Geolosys.getInstance().LOGGER.info("Done writing");
return compound;
}

Expand Down

0 comments on commit ce5204f

Please sign in to comment.