super.close();
}
}
}
protected synchronized void write(int x, int z, byte[] data, int length) throws IOException {
<BUG>int offset = this.getOffset(x, z);
</BUG>
int sectorNumber = offset >> 8;
<BUG>int sectorsAllocated = offset & 0xff;

int sectorsNeeded = (length + CHUNK_HEADER_SIZE) / SECTOR_BYTES + 1;
</BUG>
if (sectorsNeeded >= 256) {

super.close();
}
}
}
protected synchronized void write(int x, int z, byte[] data, int length) throws IOException {
final int offset = getOffset(x, z);
int sectorNumber = offset >> 8;
final int sectorsAllocated = offset & 0xff;
final int sectorsNeeded = (length + CHUNK_HEADER_SIZE) / SECTOR_BYTES + 1;
if (sectorsNeeded >= 256) {
