Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-09 21:10:05 +01:00
Fixed McRegionReader not being closed.
Dieser Commit ist enthalten in:
Ursprung
1d68fdd11c
Commit
49b4c190f9
@ -48,8 +48,15 @@ public abstract class McRegionChunkStore extends ChunkStore {
|
||||
|
||||
protected McRegionReader getReader(Vector2D pos) throws DataException, IOException {
|
||||
String filename = getFilename(pos);
|
||||
if (curFilename != null && curFilename.equals(filename)) {
|
||||
return cachedReader;
|
||||
if (curFilename != null) {
|
||||
if (curFilename.equals(filename)) {
|
||||
return cachedReader;
|
||||
} else {
|
||||
try {
|
||||
cachedReader.close();
|
||||
} catch (IOException e) {
|
||||
}
|
||||
}
|
||||
}
|
||||
InputStream stream = getInputStream(filename);
|
||||
cachedReader = new McRegionReader(stream);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren