Revert "NULL to nullptr"

This reverts commit 4b4b20a84b.
This commit is contained in:
GabsPuNs
2026-03-21 00:04:26 -04:00
parent 0d0ca31dfc
commit 180b4a117b
69 changed files with 4178 additions and 4176 deletions

View File

@@ -24,7 +24,7 @@ bool GameMode::destroyBlock(int x, int y, int z, int face)
{
Level *level = minecraft->level;
Tile *oldTile = Tile::tiles[level->getTile(x, y, z)];
if (oldTile == nullptr) return false;
if (oldTile == NULL) return false;
// 4J - Let the rendering side of thing know we are about to destroy the tile, so we can synchronise collision with async render data upates.
minecraft->levelRenderer->destroyedTileManager->destroyingTileAt(level, x, y, z);
@@ -35,7 +35,7 @@ bool GameMode::destroyBlock(int x, int y, int z, int face)
level->getChunkAt(x,z)->recalcHeightmapOnly();
bool changed = level->setTile(x, y, z, 0);
if (oldTile != nullptr && changed)
if (oldTile != NULL && changed)
{
oldTile->destroy(level, x, y, z, data);
}
@@ -95,7 +95,7 @@ void GameMode::adjustPlayer(shared_ptr<Player> player)
// }
// }
//
// if (item == nullptr) return false;
// if (item == NULL) return false;
// return item->useOn(player, level, x, y, z, face, bTestUseOnOnly);
//}