mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 19:28:49 -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();
|
chunk.blockPosToEntityDataMapMutex.lock();
|
||||||
defer chunk.blockPosToEntityDataMapMutex.unlock();
|
defer chunk.blockPosToEntityDataMapMutex.unlock();
|
||||||
|
|
||||||
const dataIndex = chunk.blockPosToEntityDataMap.get(blockIndex) orelse {
|
const dataIndex = chunk.blockPosToEntityDataMap.get(blockIndex) orelse return null;
|
||||||
std.log.warn("Couldn't get entity data of block at position {}", .{pos});
|
|
||||||
return null;
|
|
||||||
};
|
|
||||||
return storage.get(dataIndex);
|
return storage.get(dataIndex);
|
||||||
}
|
}
|
||||||
pub const GetOrPutResult = struct {
|
pub const GetOrPutResult = struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user