mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
inverted config check
Since most people are not regularly updating their config files, this needs to assume the value is disabled rather than enabled.
This commit is contained in:
parent
e415d96a9d
commit
0774ab930d
@ -986,7 +986,7 @@ void PetComponent::Activate(Item* item, bool registerPet)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PetComponent::AddDrainImaginationTimer(Item* item) {
|
void PetComponent::AddDrainImaginationTimer(Item* item) {
|
||||||
if (Game::config->GetValue("pets_imagination") == "0") return;
|
if (Game::config->GetValue("pets_imagination") != "1") return;
|
||||||
|
|
||||||
auto playerInventory = item->GetInventory();
|
auto playerInventory = item->GetInventory();
|
||||||
if (!playerInventory) return;
|
if (!playerInventory) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user