Don't double add products

pull/34/head
bobloy 6 years ago
parent 640df9656f
commit 4950408f6d

@ -1260,7 +1260,8 @@ class PlantTycoon(Cog):
if withdraw_points:
if product.lower() not in gardener.products:
gardener.products[product.lower()] = 0
gardener.products[product.lower()] += amount
# gardener.products[product.lower()] += amount
# Only add it once
gardener.products[product.lower()] += (
amount * self.products[product.lower()]["uses"]
)

Loading…
Cancel
Save