From 6f7b225ce84da251d88ac3940343dcfe9d1cc65a Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Fri, 18 Jun 2021 13:49:45 +0100 Subject: [PATCH] ParticleBuilder is not thread-safe! --- src/main/java/electroblob/wizardry/util/ParticleBuilder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/util/ParticleBuilder.java b/src/main/java/electroblob/wizardry/util/ParticleBuilder.java index 618be8b8..2c813fc7 100644 --- a/src/main/java/electroblob/wizardry/util/ParticleBuilder.java +++ b/src/main/java/electroblob/wizardry/util/ParticleBuilder.java @@ -34,7 +34,9 @@ import java.util.Random; * ParticleBuilder.create(Type.SPARKLE).pos(x, y, z).vel(vx, vy, vz).clr(r, g, b).spawn(world); *

* It also goes without saying that this class should only ever be used client-side. Attempting to spawn particles - * on the server side will not work and will print a warning to the console. + * on the server side will not work and will print a warning to the console. {@code ParticleBuilder} is not threadsafe + * and attempting to call it from multiple threads at once will very likely cause an {@link IllegalStateException}. + * * @author Electroblob * @since Wizardry 4.2 */