From 29d72d00e13f82eeafb215d813575e7ab04102b9 Mon Sep 17 00:00:00 2001 From: IntegratedQuantum Date: Thu, 31 Jul 2025 20:45:34 +0200 Subject: [PATCH] Remove warning about block entities being null, this is a valid state now fixes #1613 --- src/block_entity.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/block_entity.zig b/src/block_entity.zig index ef6ac4ee..a8471ec6 100644 --- a/src/block_entity.zig +++ b/src/block_entity.zig @@ -171,10 +171,7 @@ fn BlockEntityDataStorage(T: type) type { chunk.blockPosToEntityDataMapMutex.lock(); defer chunk.blockPosToEntityDataMapMutex.unlock(); - const dataIndex = chunk.blockPosToEntityDataMap.get(blockIndex) orelse { - std.log.warn("Couldn't get entity data of block at position {}", .{pos}); - return null; - }; + const dataIndex = chunk.blockPosToEntityDataMap.get(blockIndex) orelse return null; return storage.get(dataIndex); } pub const GetOrPutResult = struct {