Skip to content

Commit

Permalink
add back in puzzle not found error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jadebenn committed Apr 23, 2024
1 parent d99806f commit e8a0eaa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dGame/dComponents/PetComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ void PetComponent::OnUse(Entity* originator) {
inventoryComponent->DespawnPet();

const auto* const entry = CDClientManager::GetTable<CDTamingBuildPuzzleTable>()->GetByLOT(m_Parent->GetLOT());
if (!entry) return;
if (!entry) {
ChatPackets::SendSystemMessage(originator->GetSystemAddress(), u"Failed to find the puzzle minigame for this pet.");
return;
}

const auto* const destroyableComponent = originator->GetComponent<DestroyableComponent>();
if (destroyableComponent == nullptr) {
Expand Down

0 comments on commit e8a0eaa

Please sign in to comment.