mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-09 09:38:26 +00:00
SwitchComponent pass
This commit is contained in:
@@ -1013,9 +1013,6 @@ void Entity::OnCollisionLeavePhantom(const LWOOBJID otherEntity) {
|
||||
|
||||
TriggerEvent(eTriggerEventType::EXIT, other);
|
||||
|
||||
auto* switchComponent = GetComponent<SwitchComponent>();
|
||||
if (switchComponent) switchComponent->EntityLeave(other);
|
||||
|
||||
const auto index = std::find(m_TargetsInPhantom.begin(), m_TargetsInPhantom.end(), otherEntity);
|
||||
|
||||
if (index == m_TargetsInPhantom.end()) return;
|
||||
|
||||
Reference in New Issue
Block a user