From 6ef789c08703c0d5ff1b1b1f6a163449ba53248a Mon Sep 17 00:00:00 2001 From: cola98765 Date: Wed, 26 Jan 2022 09:07:00 +0100 Subject: [PATCH] removed /2 in merge multi data. now that we support a lot of connected lods it's needed --- src/main/java/com/seibel/lod/core/util/DataPointUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/seibel/lod/core/util/DataPointUtil.java b/src/main/java/com/seibel/lod/core/util/DataPointUtil.java index 43b4234a7..ae5679501 100644 --- a/src/main/java/com/seibel/lod/core/util/DataPointUtil.java +++ b/src/main/java/com/seibel/lod/core/util/DataPointUtil.java @@ -324,7 +324,7 @@ public class DataPointUtil int size = dataToMerge.length / inputVerticalData; // We initialize the arrays that are going to be used - int heightAndDepthLength = (WORLD_HEIGHT / 2 + 1) * 2; + int heightAndDepthLength = WORLD_HEIGHT * 2; short[] heightAndDepth = tLocalHeightAndDepth.get(); if (heightAndDepth==null || heightAndDepth.length != heightAndDepthLength) { heightAndDepth = new short[heightAndDepthLength];