aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/DyePowderItem.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/DyePowderItem.cpp
parent07ad68bc156b3ab70401723bb074a29588ad3cb7 (diff)
Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast"
This reverts commit 07ad68bc156b3ab70401723bb074a29588ad3cb7.
Diffstat (limited to 'Minecraft.World/DyePowderItem.cpp')
-rw-r--r--Minecraft.World/DyePowderItem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/DyePowderItem.cpp b/Minecraft.World/DyePowderItem.cpp
index 66d7df9c..b92e7789 100644
--- a/Minecraft.World/DyePowderItem.cpp
+++ b/Minecraft.World/DyePowderItem.cpp
@@ -291,9 +291,9 @@ mainloop: continue;
bool DyePowderItem::interactEnemy(std::shared_ptr<ItemInstance> itemInstance, std::shared_ptr<Mob> mob)
{
- if (std::dynamic_pointer_cast<Sheep>( mob ) != NULL)
+ if (dynamic_pointer_cast<Sheep>( mob ) != NULL)
{
- std::shared_ptr<Sheep> sheep = std::dynamic_pointer_cast<Sheep>(mob);
+ std::shared_ptr<Sheep> sheep = dynamic_pointer_cast<Sheep>(mob);
// convert to tile-based color value (0 is white instead of black)
int newColor = ClothTile::getTileDataForItemAuxValue(itemInstance->getAuxValue());
if (!sheep->isSheared() && sheep->getColor() != newColor)