Clean up some io close() calls

This commit is contained in:
aumgn
2012-08-27 12:46:56 +02:00
parent 9637871969
commit 1fef255d77
4 changed files with 13 additions and 12 deletions

View File

@ -120,7 +120,7 @@ public abstract class LegacyChunkStore extends ChunkStore {
return rootTag;
} finally {
stream.close();
nbt.close();
}
}

View File

@ -104,7 +104,7 @@ public abstract class McRegionChunkStore extends ChunkStore {
return rootTag;
} finally {
stream.close();
nbt.close();
}
}

View File

@ -68,6 +68,7 @@ public class MCEditSchematicFormat extends SchematicFormat {
// Schematic tag
CompoundTag schematicTag = (CompoundTag) nbtStream.readTag();
nbtStream.close();
if (!schematicTag.getName().equals("Schematic")) {
throw new DataException("Tag \"Schematic\" does not exist or is not first");
}