fix: avant gardens switches (#1667)

* yep

* remove dumb knockback

idk how the 1 switch in pet cove does it
This commit is contained in:
David Markowitz
2024-12-07 17:11:13 -08:00
committed by GitHub
parent 32a1e5ece5
commit 4a1c289fb1
2 changed files with 5 additions and 1 deletions

View File

@@ -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