From 6dacd6a13918aa1058330205a257a09d451551f7 Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Mon, 15 Nov 2021 22:34:02 +0000 Subject: [PATCH] Actual fix for berry plant harvesting crash --- Data/Scripts/012_Overworld/006_Overworld_BerryPlants.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data/Scripts/012_Overworld/006_Overworld_BerryPlants.rb b/Data/Scripts/012_Overworld/006_Overworld_BerryPlants.rb index 459c8956a..07c3701c2 100644 --- a/Data/Scripts/012_Overworld/006_Overworld_BerryPlants.rb +++ b/Data/Scripts/012_Overworld/006_Overworld_BerryPlants.rb @@ -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)