Cleaning up minor issue with the ChunkStore.

This commit is contained in:
Glitchfinder 2013-02-08 13:26:47 -08:00
parent f97e9bd19f
commit 0fae8be816

View File

@ -178,16 +178,15 @@ public class PrimitiveChunkStore implements ChunkStore {
}
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
int fileVersionNumber; // Can be used to determine the format of the file
int magic = in.readInt();
// Can be used to determine the format of the file
int fileVersionNumber = in.readInt();
long lsb = in.readLong();
if (((int) (lsb >> 32)) == MAGIC_NUMBER) {
fileVersionNumber = (int) lsb;
lsb = in.readLong();
} else {
if (magic != MAGIC_NUMBER) {
fileVersionNumber = 0;
}
long lsb = in.readLong();
long msb = in.readLong();
worldUid = new UUID(msb, lsb);
cx = in.readInt();