mojira.dev
MC-209361

Game crashes upon instantly click-replacing the block underneath a bamboo sapling with another bamboo

The bug

When simultaneously left+right clicking, you can replace a block with a different block instantly. If you instantly replace the block underneath a bamboo sapling with another bamboo sapling, the game crashes.

Crash report

1.16.4\: [^crash-2020-12-27_09.24.50-client.txt]

Description: Unexpected error

java.lang.IllegalArgumentException: Cannot get property cfg{name=age, clazz=class java.lang.Integer, values=[0, 1]} as it does not exist in Block{minecraft:bamboo_sapling}
	at cej.c(SourceFile:95)
	at btu.a(SourceFile:104)
	at bkh.c(SourceFile:111)
	at bkh.a(SourceFile:63)
	at bkh.a(SourceFile:43)
	at bmb.a(SourceFile:227)
	at dww.a(SourceFile:328)
	at djz.aM(SourceFile:1452)
	at djz.aO(SourceFile:1709)
	at djz.q(SourceFile:1534)
	at djz.e(SourceFile:1021)
	at djz.e(SourceFile:681)
	at net.minecraft.client.main.Main.main(SourceFile:215)

How to reproduce

Creative mode

Place a bamboo sapling on top of 2 blocks of dirt. Hold a bamboo and simultaneously right click + left click the dirt block underneath the bamboo sapling.

Survival mode

Place a bamboo sapling on top of 2 blocks of dirt. Hold a bamboo in your offhand and hold a shovel fast enough to insta-mine dirt in your mainhand. Simultaneously right click + left click the dirt block underneath the bamboo sapling.

Linked issues

Attachments

Comments 5

I can confirm that this occurs in 20w51a.

@unknown please attach the crash report so we can verify that this is the same issue.

Here is the crash report:

[media]

Please keep in mind that the mappings in my crash report and in the reporter's crash report will be different because the reporter tested in 1.16.4 and I tested in 20w51a. For example, cej in 1.16.4 and chc in 20w51a both correspond to net.minecraft.world.level.block.state.StateHolder.

Thanks! Was able to reproduce myself.

Can be reproduced for 1.16.5-rc1in creative mode.

[media][media]

And in survival mode with Efficiency 3 or more (to instantly mine dirt). The shovel in the video has efficiency 4.

[media]



^

[media]

^

Anthony G

Panda4994

Confirmed

Very Important

Crash

1.16.4, 20w51a, 1.16.5

21w05a

Retrieved