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

Setting the size parameter for the dust particle to 0 or very close to it crashes the game

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w19a
    • Minecraft 17w47b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w09a, Minecraft 18w16a
    • Confirmed

      The bug

      I ran the following command:

      /particle dust 0 0 0 0 ~ ~ ~ 0 0 0 1 1 force
      

      and my game subsequently crashed.

      I believe changing the fourth zero in the chain is responsible for the crash since running

      /particle dust 0 0 0 1 ~ ~ ~ 0 0 0 1 1 force
      

      worked fine.

      Crash report

      Description: Ticking Particle
      
      java.lang.ArithmeticException: / by zero
      	at bxg.a(SourceFile:49)
      	at bxw.b(SourceFile:206)
      	at bxw.a(SourceFile:195)
      	at bxw.a(SourceFile:185)
      	at bxw.a(SourceFile:153)
      	at bmh.m(SourceFile:1286)
      	at bmh.b(SourceFile:788)
      	at bmh.a(SourceFile:376)
      	at net.minecraft.client.main.Main.main(SourceFile:134)
      

            rherlitz Rikard Herlitz
            onepointzero OnePointZero
            Votes:
            16 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: