fix: correctly call force when sending particles

This commit is contained in:
granny
2025-02-02 21:19:31 -08:00
parent 16cfd04b6c
commit 4f481858a3
3 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@
for (int i = 0; i < 8; i++) { for (int i = 0; i < 8; i++) {
- level.addParticle(ParticleTypes.LARGE_SMOKE, x + Math.random(), y + Math.random(), z + Math.random(), 0.0, 0.0, 0.0); - level.addParticle(ParticleTypes.LARGE_SMOKE, x + Math.random(), y + Math.random(), z + Math.random(), 0.0, 0.0, 0.0);
+ ((net.minecraft.server.level.ServerLevel) level).sendParticlesSource(null, ParticleTypes.LARGE_SMOKE, false, true, x + Math.random(), y + Math.random(), z + Math.random(), 1, 0.0D, 0.0D, 0.0D, 0.0D); // Purpur - Add allow water in end world option + ((net.minecraft.server.level.ServerLevel) level).sendParticlesSource(null, ParticleTypes.LARGE_SMOKE, true, false, x + Math.random(), y + Math.random(), z + Math.random(), 1, 0.0D, 0.0D, 0.0D, 0.0D); // Purpur - Add allow water in end world option
} }
return true; return true;

View File

@@ -57,7 +57,7 @@ public class DolphinSpit extends LlamaSpit {
Vec3 motDouble = mot.scale(2.0); Vec3 motDouble = mot.scale(2.0);
for (int i = 0; i < 5; i++) { for (int i = 0; i < 5; i++) {
((ServerLevel) level()).sendParticlesSource(null, ParticleTypes.BUBBLE, ((ServerLevel) level()).sendParticlesSource(null, ParticleTypes.BUBBLE,
false, true, true, false,
getX() + random.nextFloat() / 2 - 0.25F, getX() + random.nextFloat() / 2 - 0.25F,
getY() + random.nextFloat() / 2 - 0.25F, getY() + random.nextFloat() / 2 - 0.25F,
getZ() + random.nextFloat() / 2 - 0.25F, getZ() + random.nextFloat() / 2 - 0.25F,

View File

@@ -59,7 +59,7 @@ public class PhantomFlames extends LlamaSpit {
Vec3 motDouble = mot.scale(2.0); Vec3 motDouble = mot.scale(2.0);
for (int i = 0; i < 5; i++) { for (int i = 0; i < 5; i++) {
((ServerLevel) level()).sendParticlesSource(null, ParticleTypes.FLAME, ((ServerLevel) level()).sendParticlesSource(null, ParticleTypes.FLAME,
false, true, true, false,
getX() + random.nextFloat() / 2 - 0.25F, getX() + random.nextFloat() / 2 - 0.25F,
getY() + random.nextFloat() / 2 - 0.25F, getY() + random.nextFloat() / 2 - 0.25F,
getZ() + random.nextFloat() / 2 - 0.25F, getZ() + random.nextFloat() / 2 - 0.25F,