Fix chunk deserialisation
Extra-data deserialisation was missing the last run of values,
replacing them with 0.
@@ -168,10 +168,10 @@ private static void runLengthDecode(EntityData.RunLengthEncoding16 data, TeraArr
for (int y = 0; y < array.getSizeY(); ++y) {
for (int z = 0; z < array.getSizeZ(); ++z) {
for (int x = 0; x < array.getSizeX(); ++x) {
+ if (count == 0) {
if (index >= data.getRunLengthsCount()) {
break outer;
}
- if (count == 0) {
count = data.getRunLengths(index);
value = data.getValues(index);
index++;
