mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Replace NULL with nullptr for chest check
This commit is contained in:
parent
ee3a5e8393
commit
3cf431e195
|
|
@ -62,7 +62,7 @@ bool BonusChestFeature::place(Level *level, Random *random, int x, int y, int z,
|
|||
{
|
||||
level->setTileAndData(x2, y2, z2, Tile::chest_Id, 0, Tile::UPDATE_CLIENTS);
|
||||
shared_ptr<ChestTileEntity> chest = dynamic_pointer_cast<ChestTileEntity>(level->getTileEntity(x2, y2, z2));
|
||||
if (chest != NULL)
|
||||
if (chest != nullptr)
|
||||
{
|
||||
WeighedTreasure::addChestItems(random, treasureList, chest, numRolls);
|
||||
chest->isBonusChest = true; // 4J added
|
||||
|
|
|
|||
Loading…
Reference in a new issue