mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-24 10:18:16 +00:00
cleaned up kruft
This commit is contained in:
@@ -101,15 +101,6 @@ void SwitchComponent::Update(float deltaTime) {
|
||||
}
|
||||
}
|
||||
|
||||
void SwitchComponent::OnUse(Entity* originator) {
|
||||
LOG("YOU USED ME!");
|
||||
m_Parent->TriggerEvent(eTriggerEventType::INTERACT, originator);
|
||||
|
||||
for (CppScripts::Script* script : CppScripts::GetEntityScripts(m_Parent)) {
|
||||
script->OnUse(m_Parent, originator);
|
||||
}
|
||||
}
|
||||
|
||||
Entity* SwitchComponent::GetParentEntity() const {
|
||||
return m_Parent;
|
||||
}
|
||||
@@ -135,8 +126,8 @@ void SwitchComponent::SetPetBouncer(BouncerComponent* value) {
|
||||
m_PetBouncer = value;
|
||||
|
||||
if (value != nullptr) {
|
||||
//m_PetBouncer->SetPetEnabled(true);
|
||||
//petSwitches.push_back(this); //This seems to govern if pets can "see" this
|
||||
m_PetBouncer->SetPetEnabled(true);
|
||||
petSwitches.push_back(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user