Skip to content

Commit

Permalink
Fix dust particles type (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 authored Aug 10, 2020
1 parent 9ac13f3 commit c7958af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void translate(ServerSpawnParticlePacket packet, GeyserSession session) {
int r = (int) (data.getRed()*255);
int g = (int) (data.getGreen()*255);
int b = (int) (data.getBlue()*255);
particle.setType(LevelEventType.PARTICLE_FALLING_DUST);
particle.setType(LevelEventType.PARTICLE_REDSTONE);
particle.setData(((0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff));
particle.setPosition(Vector3f.from(packet.getX(), packet.getY(), packet.getZ()));
session.sendUpstreamPacket(particle);
Expand Down

0 comments on commit c7958af

Please sign in to comment.