Skip to content

Commit

Permalink
Merge branch 'main' into sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
EmosewaMC committed Dec 8, 2024
2 parents 0826828 + 4a1c289 commit 321b21b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dGame/Entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1351,6 +1351,11 @@ void Entity::OnCollisionPhantom(const LWOOBJID otherEntity) {
callback(other);
}

SwitchComponent* switchComp = GetComponent<SwitchComponent>();
if (switchComp) {
switchComp->OnUse(other);
}

TriggerEvent(eTriggerEventType::ENTER, other);

// POI system
Expand Down
1 change: 0 additions & 1 deletion dGame/dComponents/SwitchComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ void SwitchComponent::EntityEnter(Entity* entity) {
RenderComponent::PlayAnimation(m_Parent, u"engaged");
m_PetBouncer->SetPetBouncerEnabled(true);
} else {
GameMessages::SendKnockback(entity->GetObjectID(), m_Parent->GetObjectID(), m_Parent->GetObjectID(), 0.0f, NiPoint3(0.0f, 17.0f, 0.0f));
Game::entityManager->SerializeEntity(m_Parent);
}

Expand Down

0 comments on commit 321b21b

Please sign in to comment.