Fixes #649
This commit is contained in:
parent
94a7834917
commit
d8e756a74e
@ -410,10 +410,11 @@ public class BukkitChunk_1_7 extends CharFaweChunk<Chunk, BukkitQueue17> {
|
|||||||
currentIdArray[k] = newIdArray[k];
|
currentIdArray[k] = newIdArray[k];
|
||||||
if (data) {
|
if (data) {
|
||||||
int dataByte = FaweCache.getData(combined);
|
int dataByte = FaweCache.getData(combined);
|
||||||
|
int kShift = k >> 1;
|
||||||
if ((k & 1) == 0) {
|
if ((k & 1) == 0) {
|
||||||
currentDataArray.a[k] = (byte) (currentDataArray.a[k] & 240 | dataByte);
|
currentDataArray.a[kShift] = (byte) (currentDataArray.a[kShift] & 240 | dataByte);
|
||||||
} else {
|
} else {
|
||||||
currentDataArray.a[k] = (byte) (currentDataArray.a[k] & 15 | (dataByte) << 4);
|
currentDataArray.a[kShift] = (byte) (currentDataArray.a[kShift] & 15 | (dataByte) << 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user