Fixed missing particle effect when throwing a cloud in a jar

This commit is contained in:
Sollace 2021-12-29 21:15:46 +02:00
parent 0f4e72a55b
commit 26df9fc8d3

View file

@ -149,7 +149,7 @@ public class JarItem extends Item implements ProjectileDelegate, ItemImpl.Tickab
projectile.world.syncWorldEvent(WorldEvents.SPLASH_POTION_SPLASHED, projectile.getBlockPos(), thunder ? 0x888888 : 0xF8F8F8); projectile.world.syncWorldEvent(WorldEvents.SPLASH_POTION_SPLASHED, projectile.getBlockPos(), thunder ? 0x888888 : 0xF8F8F8);
for (int i = projectile.world.random.nextInt(3) + 1; i >= 0; i--) { for (int i = projectile.world.random.nextInt(3) + 1; i >= 0; i--) {
projectile.world.addParticle(UParticles.CLOUDS_ESCAPING, true, ParticleUtils.spawnParticle(projectile.world, UParticles.CLOUDS_ESCAPING,
projectile.getX(), projectile.getY(), projectile.getZ(), projectile.getX(), projectile.getY(), projectile.getZ(),
projectile.world.random.nextFloat() - 0.5, projectile.world.random.nextFloat() - 0.5,
0, 0,