aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/FishingHook.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/FishingHook.cpp
parent7bee4770df1540c2daf3121c0790332fb41e72dd (diff)
dynamic_pointer_cast -> std::dynamic_pointer_cast
Diffstat (limited to 'Minecraft.World/FishingHook.cpp')
-rw-r--r--Minecraft.World/FishingHook.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Minecraft.World/FishingHook.cpp b/Minecraft.World/FishingHook.cpp
index d1fd5bb6..024389fb 100644
--- a/Minecraft.World/FishingHook.cpp
+++ b/Minecraft.World/FishingHook.cpp
@@ -58,7 +58,7 @@ FishingHook::FishingHook(Level *level, double x, double y, double z, std::shared
this->owner = owner;
// 4J Stu - Moved this outside the ctor
- //owner->fishing = dynamic_pointer_cast<FishingHook>( shared_from_this() );
+ //owner->fishing = std::dynamic_pointer_cast<FishingHook>( shared_from_this() );
setPos(x, y, z);
}
@@ -69,7 +69,7 @@ FishingHook::FishingHook(Level *level, std::shared_ptr<Player> mob) : Entity( le
this->owner = mob;
// 4J Stu - Moved this outside the ctor
- //owner->fishing = dynamic_pointer_cast<FishingHook>( shared_from_this() );
+ //owner->fishing = std::dynamic_pointer_cast<FishingHook>( shared_from_this() );
this->moveTo(mob->x, mob->y + 1.62 - mob->heightOffset, mob->z, mob->yRot, mob->xRot);
@@ -265,7 +265,7 @@ void FishingHook::tick()
if (res->entity != NULL)
{
// 4J Stu Move fix for : fix for #48587 - CRASH: Code: Gameplay: Hitting another player with the fishing bobber crashes the game. [Fishing pole, line]
- // Incorrect dynamic_pointer_cast used around the shared_from_this()
+ // Incorrect std::dynamic_pointer_cast used around the shared_from_this()
DamageSource *damageSource = DamageSource::thrown(shared_from_this(), owner);
if (res->entity->hurt(damageSource, 0))
{