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

Game crashes when dispenser with shears is used on non-beehive block in #beehives tag


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

      Clones MC-175740

      How to reproduce

      1. Create a new world with the attached datapack (or use attached one)
      2. Place cobblestone
      3. Place dispenser with shears facing the cobblestone
      4. Place redstone block next to dispenser
      5. Crash triggers

      Stack trace

      Description: Exception ticking world
      java.lang.IllegalArgumentException: Cannot get property cpd{name=honey_level, clazz=class java.lang.Integer, values=[0, 1, 2, 3, 4, 5]} as it does not exist in Block{minecraft:cobblestone}
      	at coe.c(SourceFile:98)
      	at hl.a(SourceFile:41)
      	at hl.a(SourceFile:30)
      	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)

            panda4994 [Mojang] Panda
            apple502j apple502j
            3 Vote for this issue
            3 Start watching this issue