forked from GeyserMC/Geyser
Fix dust particles type (#1108)
This commit is contained in:
parent
9ac13f37b7
commit
c7958af1db
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ public class JavaSpawnParticleTranslator extends PacketTranslator<ServerSpawnPar
|
||||||
int r = (int) (data.getRed()*255);
|
int r = (int) (data.getRed()*255);
|
||||||
int g = (int) (data.getGreen()*255);
|
int g = (int) (data.getGreen()*255);
|
||||||
int b = (int) (data.getBlue()*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.setData(((0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff));
|
||||||
particle.setPosition(Vector3f.from(packet.getX(), packet.getY(), packet.getZ()));
|
particle.setPosition(Vector3f.from(packet.getX(), packet.getY(), packet.getZ()));
|
||||||
session.sendUpstreamPacket(particle);
|
session.sendUpstreamPacket(particle);
|
||||||
|
|
Loading…
Reference in a new issue