This commit is contained in:
aozhiwei 2023-12-15 14:08:07 +08:00
parent cdcf1fbce7
commit 3b0b0e31ac

View File

@ -1169,5 +1169,9 @@ void Bullet::ReportHookHitPos(int hit_obj_uniid, const glm::vec3& hit_pos)
bool Bullet::IsClientHook() bool Bullet::IsClientHook()
{ {
return true; if (!IsFlyHook() ||
!sender.Get()) {
return false;
}
return sender.Get()->IsPlayer();
} }