mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
Fix falling from Spider Cave not smashing you (#1302)
This commit is contained in:
parent
0ddd20e2b5
commit
7bbe5ffc39
@ -4170,6 +4170,13 @@ void GameMessages::HandleRequestDie(RakNet::BitStream* inStream, Entity* entity,
|
||||
|
||||
racingControlComponent->OnRequestDie(entity);
|
||||
}
|
||||
else {
|
||||
auto* destroyableComponent = entity->GetComponent<DestroyableComponent>();
|
||||
|
||||
if (!destroyableComponent) return;
|
||||
|
||||
destroyableComponent->Smash(killerID, killType, deathType);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user