mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
Clean up some io close() calls
This commit is contained in:
@ -120,7 +120,7 @@ public abstract class LegacyChunkStore extends ChunkStore {
|
||||
|
||||
return rootTag;
|
||||
} finally {
|
||||
stream.close();
|
||||
nbt.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ public abstract class McRegionChunkStore extends ChunkStore {
|
||||
|
||||
return rootTag;
|
||||
} finally {
|
||||
stream.close();
|
||||
nbt.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user