From 7ae0c13854d94ac2153cd3bb05ce18044b7cf8bb Mon Sep 17 00:00:00 2001 From: void_17 Date: Mon, 2 Mar 2026 17:36:56 +0700 Subject: Revert "dynamic_pointer_cast -> std::dynamic_pointer_cast" This reverts commit 07ad68bc156b3ab70401723bb074a29588ad3cb7. --- Minecraft.World/FishingHook.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Minecraft.World/FishingHook.cpp') 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( shared_from_this() ); + //owner->fishing = dynamic_pointer_cast( shared_from_this() ); setPos(x, y, z); } @@ -69,7 +69,7 @@ FishingHook::FishingHook(Level *level, std::shared_ptr mob) : Entity( le this->owner = mob; // 4J Stu - Moved this outside the ctor - //owner->fishing = std::dynamic_pointer_cast( shared_from_this() ); + //owner->fishing = dynamic_pointer_cast( 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)) { -- cgit v1.2.3