MatrexsVigil/phc2trees

Saplings growing cause stack overflow

Closed this issue · 0 comments

each of Pam's saplings have a method overridden called "grow"
Minecraft calls "grow", which then calls itself until the stack runs out of memory.

The intended function is for the sapling to call pam's custom method (also, confusingly, called grow)

It looks like she fixed it in the fruits by changing the name of the custom "grow" method to "growFruit" and changing growFruit to have the same argument order as the overridden grow method.