Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-246464

Game crashes when dispensing a bone meal in a warm ocean and there is a block with no facing block state in #wall_corals

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 22w03a
    • 1.18.1
    • None
    • Confirmed
    • Crash
    • Important

      Relates to MC-224778

      How to reproduce

      1. Create a new world with the attached datapack (or use attached one)
      2. Find warm ocean biome (or just create a single biome/superflat world)
      3. Place dispenser with bone meal
      4. Place water next to the front of the dispenser
      5. Place redstone block next to dispenser
      6. 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)
      

        1. crash-2021-12-27_15.18.21-server.txt
          4 kB
          apple502j
        2. deobf_crash-2021-12-27_15.18.21-server.txt
          9 kB
          [Bot] Arisa

            panda4994 [Mojang] Panda
            apple502j apple502j
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: