Skip to content

Commit

Permalink
fix: correctly call force when sending particles
Browse files Browse the repository at this point in the history
  • Loading branch information
granny committed Feb 3, 2025
1 parent 16cfd04 commit 4f48185
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

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);
+ ((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;
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void tick() {
Vec3 motDouble = mot.scale(2.0);
for (int i = 0; i < 5; i++) {
((ServerLevel) level()).sendParticlesSource(null, ParticleTypes.BUBBLE,
false, true,
true, false,
getX() + random.nextFloat() / 2 - 0.25F,
getY() + random.nextFloat() / 2 - 0.25F,
getZ() + random.nextFloat() / 2 - 0.25F,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public void tick() {
Vec3 motDouble = mot.scale(2.0);
for (int i = 0; i < 5; i++) {
((ServerLevel) level()).sendParticlesSource(null, ParticleTypes.FLAME,
false, true,
true, false,
getX() + random.nextFloat() / 2 - 0.25F,
getY() + random.nextFloat() / 2 - 0.25F,
getZ() + random.nextFloat() / 2 - 0.25F,
Expand Down

0 comments on commit 4f48185

Please sign in to comment.