From 221998e9447871268ae6c5ab8b67ec91e939ed8a Mon Sep 17 00:00:00 2001 From: Gjum Date: Thu, 2 Jun 2022 03:56:45 +0200 Subject: [PATCH] return air instead of null --- .../mapsync/common/integration/JourneyMapHelperReal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/common/src/main/java/gjum/minecraft/mapsync/common/integration/JourneyMapHelperReal.java b/mod/common/src/main/java/gjum/minecraft/mapsync/common/integration/JourneyMapHelperReal.java index d5d94045..49386865 100644 --- a/mod/common/src/main/java/gjum/minecraft/mapsync/common/integration/JourneyMapHelperReal.java +++ b/mod/common/src/main/java/gjum/minecraft/mapsync/common/integration/JourneyMapHelperReal.java @@ -92,7 +92,7 @@ public BlockState getBlockState(BlockPos pos) { } if (layer.y() < pos.getY()) { // top of layer is below pos, so pos is inside prevLayer - if (prevLayer == null) return null; // first layer is already below pos + if (prevLayer == null) return Blocks.AIR.defaultBlockState(); // first layer is already below pos return prevLayer.state(); } prevLayer = layer;