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