mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
fix frb #import
This commit is contained in:
parent
8de18566c0
commit
260290aa85
@ -398,7 +398,7 @@ public class DiskStorageHistory extends FaweStreamChangeSet {
|
|||||||
gis.close();
|
gis.close();
|
||||||
return summary;
|
return summary;
|
||||||
}
|
}
|
||||||
byte[] buffer = new byte[9];
|
byte[] buffer = new byte[4];
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int amount = (Settings.IMP.HISTORY.BUFFER_SIZE - HEADER_SIZE) / 9;
|
int amount = (Settings.IMP.HISTORY.BUFFER_SIZE - HEADER_SIZE) / 9;
|
||||||
while (!shallow && ++i < amount) {
|
while (!shallow && ++i < amount) {
|
||||||
@ -407,11 +407,11 @@ public class DiskStorageHistory extends FaweStreamChangeSet {
|
|||||||
gis.close();
|
gis.close();
|
||||||
return summary;
|
return summary;
|
||||||
}
|
}
|
||||||
int x = ((byte) buffer[0] & 0xFF) + ((byte) buffer[1] << 8) + ox;
|
int x = (buffer[0] & 0xFF) + (buffer[1] << 8) + ox;
|
||||||
int z = ((byte) buffer[2] & 0xFF) + ((byte) buffer[3] << 8) + oz;
|
int z = (buffer[2] & 0xFF) + (buffer[3] << 8) + oz;
|
||||||
int combined1 = buffer[7] & 0xFF;
|
int from = gis.readVarInt();
|
||||||
int combined2 = buffer[8] & 0xFF;
|
int to = gis.readVarInt();
|
||||||
summary.add(x, z, ((combined2 << 4) + (combined1 >> 4)));
|
summary.add(x, z, to);
|
||||||
}
|
}
|
||||||
return summary;
|
return summary;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user