Mojira Archive
MC-75940

block log2 and leaves2 crash the game when set to certain data values

What I expected to happen was...:
it placed a wood block

What actually happened was...:
it crashed the game

Steps to Reproduce:
1. Get a log2 or leaves2 with setblock, fill or give with one of the following data values: 2/3/6/7/10/11/14/15
2. place the block
3. crash

14w46a
Description: Unexpected error

java.lang.IllegalArgumentException: Cannot set property arg{name=variant, clazz=class ana$a, values=[acacia, dark_oak]} to oak on block minecraft:log2, it is not an allowed value
	at aqu$a.a(SourceFile:177)
	at ams.a(SourceFile:54)
	at amh.a(SourceFile:51)
	at abv.a(SourceFile:49)
	at adk.a(SourceFile:134)
	at bke.a(SourceFile:345)
	at bby.au(SourceFile:1426)
	at bby.ax(SourceFile:1931)
	at bby.aw(SourceFile:1749)
	at bby.s(SourceFile:1593)
	at bby.as(SourceFile:941)
	at bby.a(SourceFile:385)
	at net.minecraft.client.main.Main.main(SourceFile:122)

The issue is that leaves2/log2 only have 2 set values(acacia and dark oak), and 2 invalid ones for the variant block state. By setting/getting these data values, the variant state is returned as invalid value, and the game doesn't like that.