mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
* Add getChunkDontCreate. Will be useful for multiplayer.
This commit is contained in:
@@ -62,6 +62,15 @@ LevelChunk* PerformanceTestChunkSource::getChunk(int x, int z)
|
||||
return create(x, z);
|
||||
}
|
||||
|
||||
LevelChunk* PerformanceTestChunkSource::getChunkDontCreate(int x, int z)
|
||||
{
|
||||
TileID* pData = new TileID[0x8000u];
|
||||
memset(pData, 0, 0x8000u * sizeof(TileID));
|
||||
|
||||
LevelChunk* pChunk = new LevelChunk(m_pLevel, pData, x, z);
|
||||
return pChunk;
|
||||
}
|
||||
|
||||
bool PerformanceTestChunkSource::hasChunk(int x, int z)
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user