Large tree variants grow downwards and replace any blocks they touch.
mries92 opened this issue ยท 9 comments
API/Modloader
Forge 36.1.24
Describe the bug
When saplings grow, they do not correctly register "ground level" and grow directly into the ground, replacing any blocks they touch.
To Reproduce
Plant a sapling, either wait for it to grow or make it grow with bonemeal. When a large variant is produced, it will not treat the sapling location as ground level, and instead continue to grow downwards. I have confirmed this with oak and birch saplings.
Expected behavior
The sapling initial location should be treated as ground level, and the tree should only grow upwards.
Screenshots/Videos
A screenshot of the issue. You can see the sapling growing through the floor its placed on (and it grew even futher down underground).
Additional context
Forge version 36.1.24
BYG version 1.2.7
Logs
Latest.log and Debug.log are located here
Sorry about that. My BYG version is 1.2.7, minecraft version 1.16.5. I can't tell if it is the current version atm as curseforge appears to be down, but I will confirm as soon as it is back up.
Edit: Checked through the CurseForge app, I am indeed on the latest version.
I have been doing some digging and I think it might have something to do with the isCliff
function called on line 552 of common.world.feature.overworld.trees.util.BYGAbstractTreeFeature
. I have never worked with minecraft code before so I could be digging in the complete wrong area, figured I would share =]
I am on the current release version. Now that curseforge is back up I do see there is a beta 1.2.8, I will give that a go and see if it helps =]
Commenting out the isCliff
check that I mentioned definitely fixes it. I'm sure this check is important in some edge cases though lol so not really a solution, just trying to provide you with as much information as possible.
Also just wanna say I really appreciate the great mod, its one of my must haves =]
Think I got it #506