173generator

173generator

17.8k Downloads

Saplings don't grow

kurisubrooks opened this issue ยท 10 comments

commented

In the latest build, saplings don't appear to grow, not normally nor with bone meal.
This causes quite a problem for both survival and creative players using this plugin.

commented

Are you sure there is enough space for them to grow? Are there any errors in console?

If it's neighter, then something bust have changed in bukkit.

commented

Yes, there's plenty of room. I even tried on a block in the middle of the sky. Even after 2 stacks of bonemeal there was no growth at all.

It was not working in the 1.8 build also, so i'm guessing it's definitely on Bukkit's end.

My friend managed to get them working again with a modified build he made from your repo, he told me to tell you

in the place where you check if it's LEAVES or AIR, add an OR clause for SAPLING

He would submit a PR, but he couldn't get Spruce saplings to work, and his repo is too dirty

cc: @justin97530

commented

That was something I didn't expect. Beta version just checked if the block is transparent but that also makes trees replace glass and a few other transparent blocks which is not good and I tried to avoid it. I guess I tried too hard.

commented

๐Ÿ‘ Your efforts are greatly appreciated regardless of any bugs that may exist

commented

I will debug and fix it tomorrow.

commented

Any progress? ๐Ÿ˜„

commented

Still working on it, I had to change quite a bit of code to get trees to generate the right way.

I also found something interesting: beta 1.7.3 doesn't need to check for sapling in tree generation code because when attempting to generate tree, the sapling is temporarily removed: https://github.com/Bukkit/mc-dev/blob/1a792ed860ebe2c6d4c40c52f3bc7b9e0789ca23/net/minecraft/server/BlockSapling.java#L37-L53

commented

Huh. Interesting logic on Bukkit's behalf. Glad to see you're working on
the bug fix though ๐Ÿ™‚

On Sun., 9 Oct. 2016, 7:37 pm Bartosz Skrzypczak, [email protected]
wrote:

Still working on it, I has to change quite a bit of code to get trees to
generate the right way.

I also found something interesting: beta 1.7.3 doesn't need to check for
sapling in tree generation code because when attempting to generate tree,
the sapling is temporarily removed:
https://github.com/Bukkit/mc-dev/blob/1a792ed860ebe2c6d4c40c52f3bc7b9e0789ca23/net/minecraft/server/BlockSapling.java#L37-L53

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGAAC1bCqmEDJGM4mhS71zaF9aJUNKBOks5qyKe_gaJpZM4KKgvJ
.

commented

I'll be able to test in about an hour. Thanks so much!

On Sun., 9 Oct. 2016, 8:35 pm Bartosz Skrzypczak, [email protected]
wrote:

It should work now, also the bukkit API to generate trees is now used
correctly (or at least I hope so).

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#13 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGAAC8S9DytsdZCH4ZzOi5LwTRv0p85Iks5qyLVVgaJpZM4KKgvJ
.

commented

It should work now, also the bukkit API to generate trees is now used correctly (or at least I hope so).