From 1d687fd1d43429d1fd81bc2e3f41765e641ae049 Mon Sep 17 00:00:00 2001 From: cola98765 Date: Sun, 19 Sep 2021 14:44:55 +0200 Subject: [PATCH] new mergeMultiData. Now actually working --- src/main/java/com/seibel/lod/util/DataPointUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/seibel/lod/util/DataPointUtil.java b/src/main/java/com/seibel/lod/util/DataPointUtil.java index 7026f3007..5dc8e597c 100644 --- a/src/main/java/com/seibel/lod/util/DataPointUtil.java +++ b/src/main/java/com/seibel/lod/util/DataPointUtil.java @@ -330,7 +330,7 @@ public class DataPointUtil if (i == projection.length) break; //we reached end of WORLD_HEIGHT and it's nothing more here while (ii < 15 && ((projection[i] >>> ii) & 1) == 0) ii++; - if (ii >= 15 && ((projection[i] >>> ii) & 1) == 1) //there is nothing more in this chunk + if (ii >= 15 && ((projection[i] >>> ii) & 1) == 0) //there is nothing more in this chunk { ii = 0; i++; @@ -339,7 +339,7 @@ public class DataPointUtil depth = (short)( i * 16 + ii); while (ii < 15 && ((projection[i] >>> ii) & 1) == 1) ii++; - if (ii >= 15 && ((projection[i] >>> ii) & 1) == 0) //if end is not in this chunk + if (ii >= 15 && ((projection[i] >>> ii) & 1) == 1) //if end is not in this chunk { ii = 0; i++;