mojira.dev
MC-123129

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

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

17w50a\: [^crash-2017-12-11_16.39.15-client.txt]

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)

Linked issues

Attachments

Comments 1

Can you attach the crash report found in [.minecraft|http://hopper.minecraft.net/help/guides/finding-minecraft-data-folder]/crash-reports/crash-<DATE>-client.txt please?

Click here to find out where your .minecraft folder is.
If you don't have a current crash report, please attach the launcher log which is located at [.minecraft|http://hopper.minecraft.net/help/guides/finding-minecraft-data-folder]/launcher_log.txt.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

Pepijn96

(Unassigned)

Confirmed

/particle, crash

Minecraft 17w50a

Retrieved