mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 11:17:05 -04:00
Remove warning about block entities being null, this is a valid state now
fixes #1613
This commit is contained in:
parent
7929231a0b
commit
29d72d00e1
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user