mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-10 21:14:14 +00:00
refactor: unglob std::dynamic_pointer_cast
This commit is contained in:
@@ -86,6 +86,6 @@ bool TeleportEntityPacket::canBeInvalidated()
|
||||
|
||||
bool TeleportEntityPacket::isInvalidatedBy(std::shared_ptr<Packet> packet)
|
||||
{
|
||||
std::shared_ptr<TeleportEntityPacket> target = dynamic_pointer_cast<TeleportEntityPacket>(packet);
|
||||
std::shared_ptr<TeleportEntityPacket> target = std::dynamic_pointer_cast<TeleportEntityPacket>(packet);
|
||||
return target->id == id;
|
||||
}
|
||||
Reference in New Issue
Block a user