mirror of
https://github.com/neoforged/NeoForge.git
synced 2026-10-12 02:19:42 +00:00
Co-authored-by: XFactHD <[email protected]> Co-authored-by: Technici4n <[email protected]> Co-authored-by: sciwhiz12 <[email protected]> Co-authored-by: Matyrobbrt <[email protected]> Co-authored-by: Marc Hermans <[email protected]> Co-authored-by: Sara Freimer <[email protected]>
14 lines
692 B
Diff
14 lines
692 B
Diff
--- a/net/minecraft/client/particle/FireworkParticles.java
|
|
+++ b/net/minecraft/client/particle/FireworkParticles.java
|
|
@@ -228,6 +_,10 @@
|
|
colors = IntList.of(DyeColor.BLACK.getFireworkColor());
|
|
}
|
|
|
|
+ var factory = net.neoforged.neoforge.client.FireworkShapeFactoryRegistry.get(explosion.shape());
|
|
+ if (factory != null)
|
|
+ factory.build(this, trail, twinkle, colors.toIntArray(), fadeColors.toIntArray());
|
|
+ else
|
|
switch (explosion.shape()) {
|
|
case SMALL_BALL:
|
|
this.createParticleBall(0.25, 2, colors, fadeColors, trail, twinkle);
|