From 9b261f6472086b831a695e3bce3a3720e3f14f35 Mon Sep 17 00:00:00 2001 From: s809 <43530948+s809@users.noreply.github.com> Date: Thu, 23 Jan 2025 00:15:01 +0500 Subject: [PATCH] Fix column order check breaking on tiny columns --- .../core/dataObjects/fullData/sources/FullDataSourceV2.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/com/seibel/distanthorizons/core/dataObjects/fullData/sources/FullDataSourceV2.java b/core/src/main/java/com/seibel/distanthorizons/core/dataObjects/fullData/sources/FullDataSourceV2.java index 1803ed828..72c791c65 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/dataObjects/fullData/sources/FullDataSourceV2.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/dataObjects/fullData/sources/FullDataSourceV2.java @@ -866,6 +866,11 @@ public class FullDataSourceV2 */ public static void throwIfDataColumnInWrongOrder(long pos, LongArrayList dataArray) throws IllegalStateException { + if (dataArray.size() < 2) + { + return; + } + long firstDataPoint = dataArray.getLong(0); int firstBottomY = FullDataPointUtil.getBottomY(firstDataPoint);