mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-02 14:18:23 +00:00
Merge main into property-entrance-rewrite
This commit is contained in:
@@ -15,8 +15,7 @@ void NtFactionSpyServer::OnStartup(Entity* self) {
|
||||
// Set the proximity to sense later
|
||||
auto* proximityMonitor = self->GetComponent<ProximityMonitorComponent>();
|
||||
if (proximityMonitor == nullptr) {
|
||||
proximityMonitor = new ProximityMonitorComponent(self, -1, -1);
|
||||
self->AddComponent(eReplicaComponentType::PROXIMITY_MONITOR, proximityMonitor);
|
||||
proximityMonitor = self->AddComponent<ProximityMonitorComponent>(-1, -1);
|
||||
}
|
||||
|
||||
proximityMonitor->SetProximityRadius(self->GetVar<float_t>(m_SpyProximityVariable), m_ProximityName);
|
||||
|
||||
Reference in New Issue
Block a user