aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/MonsterPlacerItem.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 17:36:56 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 17:36:56 +0700
commit7ae0c13854d94ac2153cd3bb05ce18044b7cf8bb (patch)
tree95006852217f8f113288ea34988ae91c001a5de6 /Minecraft.World/MonsterPlacerItem.cpp
parent07ad68bc156b3ab70401723bb074a29588ad3cb7 (diff)
Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast"
This reverts commit 07ad68bc156b3ab70401723bb074a29588ad3cb7.
Diffstat (limited to 'Minecraft.World/MonsterPlacerItem.cpp')
-rw-r--r--Minecraft.World/MonsterPlacerItem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/MonsterPlacerItem.cpp b/Minecraft.World/MonsterPlacerItem.cpp
index 89d79346..3c7809fe 100644
--- a/Minecraft.World/MonsterPlacerItem.cpp
+++ b/Minecraft.World/MonsterPlacerItem.cpp
@@ -181,7 +181,7 @@ bool MonsterPlacerItem::useOn(std::shared_ptr<ItemInstance> itemInstance, std::s
// 4J Stu - Force adding this as a tile update
level->setTile(x,y,z,0);
level->setTile(x,y,z,Tile::mobSpawner_Id);
- std::shared_ptr<MobSpawnerTileEntity> mste = std::dynamic_pointer_cast<MobSpawnerTileEntity>( level->getTileEntity(x,y,z) );
+ std::shared_ptr<MobSpawnerTileEntity> mste = dynamic_pointer_cast<MobSpawnerTileEntity>( level->getTileEntity(x,y,z) );
if(mste != NULL)
{
mste->setEntityId( EntityIO::getEncodeId(itemInstance->getAuxValue()) );
@@ -267,7 +267,7 @@ std::shared_ptr<Entity> MonsterPlacerItem::spawnMobAt(Level *level, int mobId, d
{
newEntity = canSpawn(mobId, level, piResult);
- std::shared_ptr<Mob> mob = std::dynamic_pointer_cast<Mob>(newEntity);
+ std::shared_ptr<Mob> mob = dynamic_pointer_cast<Mob>(newEntity);
if (mob)
{
newEntity->moveTo(x, y, z, Mth::wrapDegrees(level->random->nextFloat() * 360), 0);