From 31bb382d3cdf41b0c2666d8f60e6da2b37364103 Mon Sep 17 00:00:00 2001 From: Joshua Castle <26531652+Kas-tle@users.noreply.github.com> Date: Sat, 13 May 2023 11:56:15 -0700 Subject: [PATCH] keep arr null on get extcolstor Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com> --- .../java/level/JavaLevelChunkWithLightTranslator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/level/JavaLevelChunkWithLightTranslator.java b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/level/JavaLevelChunkWithLightTranslator.java index 694bff153..0f150d1b3 100644 --- a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/level/JavaLevelChunkWithLightTranslator.java +++ b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/level/JavaLevelChunkWithLightTranslator.java @@ -487,7 +487,9 @@ class ExtendedCollisionsStorage { private int[] data; public int get(int index) { - ensureDataExists(); + if (data == null) { + return 0; + } return data[index]; }