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:
EmosewaMC 2022-06-18 00:09:05 -07:00
parent e415d96a9d
commit 0774ab930d

View File

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