From 07ad68bc156b3ab70401723bb074a29588ad3cb7 Mon Sep 17 00:00:00 2001 From: void_17 Date: Mon, 2 Mar 2026 17:10:34 +0700 Subject: dynamic_pointer_cast -> std::dynamic_pointer_cast --- Minecraft.World/EnderCrystal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Minecraft.World/EnderCrystal.cpp') diff --git a/Minecraft.World/EnderCrystal.cpp b/Minecraft.World/EnderCrystal.cpp index 7e43ef66..476eb5d5 100644 --- a/Minecraft.World/EnderCrystal.cpp +++ b/Minecraft.World/EnderCrystal.cpp @@ -91,7 +91,7 @@ bool EnderCrystal::isPickable() bool EnderCrystal::hurt(DamageSource *source, int damage) { // 4J-PB - if the owner of the source is the enderdragon, then ignore it (where the dragon's fireball hits an endercrystal) - std::shared_ptr sourceIsDragon = dynamic_pointer_cast(source->getEntity()); + std::shared_ptr sourceIsDragon = std::dynamic_pointer_cast(source->getEntity()); if(sourceIsDragon!=NULL) { @@ -114,7 +114,7 @@ bool EnderCrystal::hurt(DamageSource *source, int damage) for (AUTO_VAR(it, entities.begin()); it != itEnd; it++) { std::shared_ptr e = *it; //entities->at(i); - dragon = dynamic_pointer_cast(e); + dragon = std::dynamic_pointer_cast(e); if(dragon != NULL) { dragon->handleCrystalDestroyed(source); -- cgit v1.2.3