Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 4f48185

Browse files
committed
fix: correctly call force when sending particles
1 parent 16cfd04 commit 4f48185

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

purpur-server/minecraft-patches/sources/net/minecraft/world/item/BucketItem.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
for (int i = 0; i < 8; i++) {
1616
- level.addParticle(ParticleTypes.LARGE_SMOKE, x + Math.random(), y + Math.random(), z + Math.random(), 0.0, 0.0, 0.0);
17-
+ ((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
17+
+ ((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
1818
}
1919

2020
return true;

purpur-server/src/main/java/org/purpurmc/purpur/entity/projectile/DolphinSpit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void tick() {
5757
Vec3 motDouble = mot.scale(2.0);
5858
for (int i = 0; i < 5; i++) {
5959
((ServerLevel) level()).sendParticlesSource(null, ParticleTypes.BUBBLE,
60-
false, true,
60+
true, false,
6161
getX() + random.nextFloat() / 2 - 0.25F,
6262
getY() + random.nextFloat() / 2 - 0.25F,
6363
getZ() + random.nextFloat() / 2 - 0.25F,

purpur-server/src/main/java/org/purpurmc/purpur/entity/projectile/PhantomFlames.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void tick() {
5959
Vec3 motDouble = mot.scale(2.0);
6060
for (int i = 0; i < 5; i++) {
6161
((ServerLevel) level()).sendParticlesSource(null, ParticleTypes.FLAME,
62-
false, true,
62+
true, false,
6363
getX() + random.nextFloat() / 2 - 0.25F,
6464
getY() + random.nextFloat() / 2 - 0.25F,
6565
getZ() + random.nextFloat() / 2 - 0.25F,

0 commit comments

Comments
 (0)