mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Cleaning up minor issue with the ChunkStore.
This commit is contained in:
parent
f97e9bd19f
commit
0fae8be816
@ -178,16 +178,15 @@ public class PrimitiveChunkStore implements ChunkStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
|
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
|
||||||
long lsb = in.readLong();
|
int fileVersionNumber = in.readInt();
|
||||||
if (((int) (lsb >> 32)) == MAGIC_NUMBER) {
|
|
||||||
fileVersionNumber = (int) lsb;
|
if (magic != MAGIC_NUMBER) {
|
||||||
lsb = in.readLong();
|
|
||||||
} else {
|
|
||||||
fileVersionNumber = 0;
|
fileVersionNumber = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
long lsb = in.readLong();
|
||||||
long msb = in.readLong();
|
long msb = in.readLong();
|
||||||
worldUid = new UUID(msb, lsb);
|
worldUid = new UUID(msb, lsb);
|
||||||
cx = in.readInt();
|
cx = in.readInt();
|
||||||
|
Loading…
Reference in New Issue
Block a user