From 84bb89b48c654bde4fcd5b149a436e4fe85a3d28 Mon Sep 17 00:00:00 2001 From: Nate Smith Date: Wed, 6 Dec 2023 21:37:12 -0800 Subject: [PATCH] fix scoping on death_check change more --- plant.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plant.py b/plant.py index f68274b..d14629f 100644 --- a/plant.py +++ b/plant.py @@ -346,10 +346,10 @@ class Plant: # Do something pass if self.dead_check(): - dm.save_plant(this_plant) - dm.data_write_json(this_plant) - dm.update_garden_db(this_plant) - dm.harvest_plant(this_plant) + dm.save_plant(self) + dm.data_write_json(self) + dm.update_garden_db(self) + dm.harvest_plant(self) this_plant.unlock_new_creation() # TODO: event check time.sleep(2)