aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/MonsterPlacerItem.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 17:10:34 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 17:10:34 +0700
commit07ad68bc156b3ab70401723bb074a29588ad3cb7 (patch)
treefcd5c35bb393920e46af6c9b643d0544e78b5ab8 /Minecraft.World/MonsterPlacerItem.cpp
parent7bee4770df1540c2daf3121c0790332fb41e72dd (diff)
dynamic_pointer_cast -> std::dynamic_pointer_cast
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 3c7809fe..89d79346 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 = dynamic_pointer_cast<MobSpawnerTileEntity>( level->getTileEntity(x,y,z) );
+ std::shared_ptr<MobSpawnerTileEntity> mste = std::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 = dynamic_pointer_cast<Mob>(newEntity);
+ std::shared_ptr<Mob> mob = std::dynamic_pointer_cast<Mob>(newEntity);
if (mob)
{
newEntity->moveTo(x, y, z, Mth::wrapDegrees(level->random->nextFloat() * 360), 0);