Fix 1.7 get id
This commit is contained in:
parent
eef3eff310
commit
bd6eb2b7b8
@ -234,7 +234,7 @@ public class BukkitQueue17 extends BukkitQueue_0<net.minecraft.server.v1_7_R4.Ch
|
|||||||
byte[] ids = ls.getIdArray();
|
byte[] ids = ls.getIdArray();
|
||||||
NibbleArray datasNibble = ls.getDataArray();
|
NibbleArray datasNibble = ls.getDataArray();
|
||||||
int i = FaweCache.CACHE_J[y & 15][z & 15][x & 15];
|
int i = FaweCache.CACHE_J[y & 15][z & 15][x & 15];
|
||||||
int combined = (ids[i] << 4) + (datasNibble == null ? 0 : datasNibble.a(x & 15, y & 15, z & 15));
|
int combined = ((ids[i] & 0xFF) << 4) + (datasNibble == null ? 0 : datasNibble.a(x & 15, y & 15, z & 15));
|
||||||
return combined;
|
return combined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ public class ForgeQueue_All extends NMSMappedFaweQueue<World, Chunk, ExtendedBlo
|
|||||||
byte[] ids = ls.getBlockLSBArray();
|
byte[] ids = ls.getBlockLSBArray();
|
||||||
NibbleArray datasNibble = ls.getBlockMSBArray();
|
NibbleArray datasNibble = ls.getBlockMSBArray();
|
||||||
int i = FaweCache.CACHE_J[y & 15][z & 15][x & 15];
|
int i = FaweCache.CACHE_J[y & 15][z & 15][x & 15];
|
||||||
int combined = (ids[i] << 4) + (datasNibble == null ? 0 : datasNibble.get(x & 15, y & 15, z & 15));
|
int combined = ((ids[i] & 0xFF) << 4) + (datasNibble == null ? 0 : datasNibble.get(x & 15, y & 15, z & 15));
|
||||||
return combined;
|
return combined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user