aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/FishingHook.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/FishingHook.cpp
parent07ad68bc156b3ab70401723bb074a29588ad3cb7 (diff)
Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast"
This reverts commit 07ad68bc156b3ab70401723bb074a29588ad3cb7.
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 024389fb..d1fd5bb6 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 = std::dynamic_pointer_cast<FishingHook>( shared_from_this() );
+ //owner->fishing = 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 = std::dynamic_pointer_cast<FishingHook>( shared_from_this() );
+ //owner->fishing = 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 std::dynamic_pointer_cast used around the shared_from_this()
+ // Incorrect dynamic_pointer_cast used around the shared_from_this()
DamageSource *damageSource = DamageSource::thrown(shared_from_this(), owner);
if (res->entity->hurt(damageSource, 0))
{