mojira.dev
MC-15224

Saplings can grow with a different type of log above

The bug

You can grow jungle and oak sapling with certain blocks above or around it. It will not remove the them but it will replace the sapling with the log and create leafs.

How to reproduce

Video demonstrating the issue: http://www.youtube.com/watch?v=eSZwNo37FQY

Code analysis

The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

The reason for this is that the method net.minecraft.world.gen.feature.WorldGenAbstractTree.canGrowInto(Block) allows a tree to generate even if one of the following blocks is in the way:

Block / Material 1

Gets replaced

air (material)

Yes ✔

leaves (material)

Yes ✔

grass

No ✔

dirt

No ✔

log

Yes ❌

log2

Yes ❌

sapling

No ✔

vine

Yes ✔

1 Multiple blocks can be out of the same material. For example "leaves" includes the blocks "leaves" and "leaves2"

Basically all blocks or materials with ❌ should be removed. Even though for logs it sounds reasonable having a oak tree with a single jungle log in the middle is pretty strange.

Linked issues

Attachments

Comments 32

Tails

Please do not mark unreleased versions as affected. You do not have access to this yet.

Tails

Confirmed in 13w18c.

Itouch2

Confirmed for 1.7.4, 1.7.5, 14w08a and 14w10c

Itouch2

Confirmed for 14w19a.

Itouch2

Confirmed for 14w20a and b.

22 more comments
Avoma

Can confirm in 1.17.1.

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.2.

Miki Pedersen

(Unassigned)

Confirmed

Gameplay

Low

Block states

bonemeal, grow, leaves, sapling, tree, tree-generation

Minecraft 1.5.2, Snapshot 13w18b, Snapshot 13w18c, Snapshot 13w19a, Minecraft 14w19a, ..., 1.20, 1.20.1, 1.20.4, 24w35a, 1.21.4

1.16 Pre-release 3

Retrieved