Actual fix for berry plant harvesting crash

This commit is contained in:
Maruno17
2021-11-15 22:34:02 +00:00
parent 06493fecbb
commit 6dacd6a139

View File

@@ -443,7 +443,7 @@ def pbPickBerry(berry, qty = 1)
return false
end
$stats.berry_plants_picked += 1
if qty >= GameData::BerryPlant.get(berry).maximum_yield
if qty >= GameData::BerryPlant.get(berry.id).maximum_yield
$stats.max_yield_berry_plants += 1
end
$bag.add(berry, qty)