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

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 17w47b, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w09a, Minecraft 18w16a
    • Fix Version/s: Minecraft 18w19a
    • Labels:
    • Confirmation Status:
      Confirmed

      Description

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rherlitz [Mojang] Rikard Herlitz
                Reporter:
                onepointzero OnePointZero
              • Votes:
                16 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: