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

Setting the size parameter for the /particle command to 0 crashes the game

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 17w50a
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed

      Description

      The bug

      Setting the size parameter for the /particle command to 0 crashes the game.

      How to reproduce

      1. Type in chat: /particle minecraft:dust 1 1 1 1
        → The particle will display
      2. Type in chat: /particle minecraft:dust 1 1 1 0
        → The game will crash because the size parameter is 0

      Crash report

      Description: Ticking Particle
      
      java.lang.ArithmeticException: / by zero
      	at bya.a(SourceFile:49)
      	at byq.b(SourceFile:215)
      	at byq.a(SourceFile:204)
      	at byq.a(SourceFile:194)
      	at byq.a(SourceFile:162)
      	at bne.m(SourceFile:1289)
      	at bne.b(SourceFile:791)
      	at bne.a(SourceFile:380)
      	at net.minecraft.client.main.Main.main(SourceFile:140)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Pepijn96 Pepijn
              • Votes:
                2 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: