This commit is contained in:
Jesse Boyd 2017-07-22 16:50:30 +10:00
parent 94a7834917
commit d8e756a74e
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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;