MatrexsVigil / harvestcraft

All rights reserved - None of my artwork is available to be used for FREE in your game EVER. If you want to HIRE ME, please contact me. Thank you. This code is here for people to learn from and to help find bugs ONLY.
https://www.patreon.com/pamsmods
89 stars 85 forks source link

Fixed tree generation checking beyond the edges of the treetop #282

Closed Sestren413 closed 5 years ago

Sestren413 commented 6 years ago

The loop termination conditions in FruitTreeGen.java that check whether a tree has enough room check a couple blocks beyond the edge of the tree in the positive x and z directions. It was causing trees to fail to grow where vanilla oak trees would so I assumed that's incorrect behavior and rewrote it similarly to what's in LogFruitTreeGen.java.