From 0774ab930da85725dabcf37ac6b32ef6c1e529c2 Mon Sep 17 00:00:00 2001 From: EmosewaMC <39972741+EmosewaMC@users.noreply.github.com> Date: Sat, 18 Jun 2022 00:09:05 -0700 Subject: [PATCH] inverted config check Since most people are not regularly updating their config files, this needs to assume the value is disabled rather than enabled. --- dGame/dComponents/PetComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dGame/dComponents/PetComponent.cpp b/dGame/dComponents/PetComponent.cpp index 87f7278b..891f0d1d 100644 --- a/dGame/dComponents/PetComponent.cpp +++ b/dGame/dComponents/PetComponent.cpp @@ -986,7 +986,7 @@ void PetComponent::Activate(Item* item, bool registerPet) } 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(); if (!playerInventory) return;