aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/CarrotOnAStickItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/CarrotOnAStickItem.cpp')
-rw-r--r--Minecraft.World/CarrotOnAStickItem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Minecraft.World/CarrotOnAStickItem.cpp b/Minecraft.World/CarrotOnAStickItem.cpp
index 9845cc25..a0fbdcf6 100644
--- a/Minecraft.World/CarrotOnAStickItem.cpp
+++ b/Minecraft.World/CarrotOnAStickItem.cpp
@@ -21,11 +21,11 @@ bool CarrotOnAStickItem::isMirroredArt()
return true;
}
-shared_ptr<ItemInstance> CarrotOnAStickItem::use(shared_ptr<ItemInstance> itemInstance, Level *level, shared_ptr<Player> player)
+std::shared_ptr<ItemInstance> CarrotOnAStickItem::use(std::shared_ptr<ItemInstance> itemInstance, Level *level, std::shared_ptr<Player> player)
{
if (player->isRiding())
{
- shared_ptr<Pig> pig = dynamic_pointer_cast<Pig>(player->riding);
+ std::shared_ptr<Pig> pig = dynamic_pointer_cast<Pig>(player->riding);
if(pig)
{
if (pig->getControlGoal()->canBoost() && itemInstance->getMaxDamage() - itemInstance->getAuxValue() >= 7)
@@ -35,7 +35,7 @@ shared_ptr<ItemInstance> CarrotOnAStickItem::use(shared_ptr<ItemInstance> itemIn
if (itemInstance->count == 0)
{
- shared_ptr<ItemInstance> replacement = shared_ptr<ItemInstance>(new ItemInstance(Item::fishingRod));
+ std::shared_ptr<ItemInstance> replacement = std::shared_ptr<ItemInstance>(new ItemInstance(Item::fishingRod));
replacement->setTag(itemInstance->tag);
return replacement;
}