mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-11 19:53:52 +00:00
dynamic_pointer_cast -> std::dynamic_pointer_cast
This commit is contained in:
parent
7bee4770df
commit
07ad68bc15
207 changed files with 623 additions and 623 deletions
|
|
@ -64,7 +64,7 @@ void EnderChestTile::setPlacedBy(Level *level, int x, int y, int z, std::shared_
|
|||
bool EnderChestTile::use(Level *level, int x, int y, int z, std::shared_ptr<Player> player, int clickedFace, float clickX, float clickY, float clickZ, bool soundOnly)
|
||||
{
|
||||
std::shared_ptr<PlayerEnderChestContainer> container = player->getEnderChestInventory();
|
||||
std::shared_ptr<EnderChestTileEntity> enderChest = dynamic_pointer_cast<EnderChestTileEntity>(level->getTileEntity(x, y, z));
|
||||
std::shared_ptr<EnderChestTileEntity> enderChest = std::dynamic_pointer_cast<EnderChestTileEntity>(level->getTileEntity(x, y, z));
|
||||
if (container == NULL || enderChest == NULL) return true;
|
||||
|
||||
if (level->isSolidBlockingTile(x, y + 1, z)) return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue