man this tutorial level is really screwed up
todo??: - fix the id system [days since the universe was created is NOT a valid id] - fix literally everything else although thats probably caused by the discrepancy above
This commit is contained in:
@@ -181,6 +181,7 @@ void Chunk::makeCopyForRebuild(Chunk *source)
|
||||
|
||||
void Chunk::rebuild()
|
||||
{
|
||||
if (this == nullptr) return;
|
||||
PIXBeginNamedEvent(0,"Rebuilding chunk %d, %d, %d", x, y, z);
|
||||
#if defined __PS3__ && !defined DISABLE_SPU_CODE
|
||||
rebuild_SPU();
|
||||
@@ -404,6 +405,10 @@ void Chunk::rebuild()
|
||||
}
|
||||
|
||||
Tile *tile = Tile::tiles[tileId];
|
||||
if (tile == nullptr)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (currentLayer == 0 && tile->isEntityTile())
|
||||
{
|
||||
shared_ptr<TileEntity> et = region->getTileEntity(x, y, z);
|
||||
|
||||
Reference in New Issue
Block a user