mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-25 17:30:45 +00:00
refactor: unglob std::dynamic_pointer_cast
This commit is contained in:
@@ -216,7 +216,7 @@ void ItemInstance::hurt(int i, std::shared_ptr<Mob> owner)
|
||||
return;
|
||||
}
|
||||
|
||||
std::shared_ptr<Player> player = dynamic_pointer_cast<Player>(owner);
|
||||
std::shared_ptr<Player> player = std::dynamic_pointer_cast<Player>(owner);
|
||||
if (i > 0 && player != NULL)
|
||||
{
|
||||
int enchanted = EnchantmentHelper::getDigDurability(player->inventory);
|
||||
|
||||
Reference in New Issue
Block a user