Game crashes when dispensing a bone meal in a warm ocean and there is a block with no facing block state in #wall_corals
Relates to MC-224778
How to reproduce
- Create a new world with the attached datapack (or use attached one)
- Find warm ocean biome (or just create a single biome/superflat world)
- Place dispenser with bone meal
- Place water next to the front of the dispenser
- Place redstone block next to dispenser
- Crash triggers
Note that to reproduce the crash (and not just error on logs), the block needs to require a supporting block or some other placement requirements, and it must fail when the bone meal tries to "grow" them. In the example datapack I used a white carpet.
Stack trace
Description: Exception ticking world
java.lang.IllegalArgumentException: Cannot set property cox{name=facing, clazz=class gm, values=[north, south, west, east]} as it does not exist in Block{minecraft:white_carpet}
at coe.a(SourceFile:117)
at bsk.a(SourceFile:123)
at hj$11.a(SourceFile:471)
at hi.dispense(SourceFile:15)
at cet.a(SourceFile:90)
at cet.a(SourceFile:113)
at cob$a.a(SourceFile:917)
at adi.d(SourceFile:688)
at dpt.a(SourceFile:215)
at dpt.a(SourceFile:98)
at adi.a(SourceFile:298)
at net.minecraft.server.MinecraftServer.b(SourceFile:879)
at net.minecraft.server.MinecraftServer.a(SourceFile:823)
at fcv.a(SourceFile:99)
at net.minecraft.server.MinecraftServer.w(SourceFile:684)
at net.minecraft.server.MinecraftServer.a(SourceFile:270)
at java.base/java.lang.Thread.run(Thread.java:833)