Skip to content

Commit

Permalink
fix shockwave particle packet
Browse files Browse the repository at this point in the history
  • Loading branch information
iron431 committed Jan 3, 2024
1 parent 76f1ceb commit 0b6bac8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ public Vector3f color() {
}
};

@Override
public void writeToNetwork(FriendlyByteBuf pBuffer) {
super.writeToNetwork(pBuffer);
pBuffer.writeBoolean(fullbright);
}

public @NotNull ParticleType<IShockwaveParticleOptions> getType() {
return ParticleRegistry.SHOCKWAVE_PARTICLE.get();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ public Optional<ParticleOptions> trailParticle() {
}
};

@Override
public void writeToNetwork(FriendlyByteBuf pBuffer) {
super.writeToNetwork(pBuffer);
pBuffer.writeBoolean(fullbright);
pBuffer.writeUtf(trailParticle);
}

public @NotNull ParticleType<IShockwaveParticleOptions> getType() {
return ParticleRegistry.TRAIL_SHOCKWAVE_PARTICLE.get();
}
Expand Down

0 comments on commit 0b6bac8

Please sign in to comment.