consistency between byte and short read methods

This commit is contained in:
Leijurv
2018-08-26 13:09:20 -07:00
parent f052c91cda
commit 74916dd24e
2 changed files with 2 additions and 8 deletions

View File

@@ -247,10 +247,7 @@ public final class CachedRegion implements IBlockTypeAccess {
byte xz = in.readByte();
int X = xz & 0x0f;
int Z = (xz >>> 4) & 0x0f;
int Y = (int) in.readByte();
if (Y < 0) {
Y += 256;
}
int Y = in.readByte() & 0xff;
locs.add(new BlockPos(X, Y, Z));
}
}